Browse Source
Merge pull request #8621 from abpframework/enisn/rel-4.3/cms-kit/refactoing-commentmongorepository
Cms Kit - Refactoing on CommentMongoRepository
pull/8627/head
İlkay İlknur
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
4 deletions
-
modules/cms-kit/src/Volo.CmsKit.MongoDB/Volo/CmsKit/MongoDB/Comments/MongoCommentRepository.cs
|
|
|
@ -23,10 +23,6 @@ namespace Volo.CmsKit.MongoDB.Comments |
|
|
|
|
|
|
|
public virtual async Task<CommentWithAuthorQueryResultItem> GetWithAuthorAsync(Guid id, CancellationToken cancellationToken = default) |
|
|
|
{ |
|
|
|
var dbContext = await GetDbContextAsync(); |
|
|
|
var commentQueryable = await GetMongoQueryableAsync(cancellationToken); |
|
|
|
var userQueryable = dbContext.Collection<CmsUser>(); |
|
|
|
|
|
|
|
var query = from comment in (await GetMongoQueryableAsync(cancellationToken)) |
|
|
|
join user in (await GetDbContextAsync(cancellationToken)).CmsUsers on comment.CreatorId equals user.Id |
|
|
|
where id == comment.Id |
|
|
|
|