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
parent
commit
442ffa493a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      modules/cms-kit/src/Volo.CmsKit.MongoDB/Volo/CmsKit/MongoDB/Comments/MongoCommentRepository.cs

4
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

Loading…
Cancel
Save