Browse Source

Update MongoAuditLogRepository.cs

pull/3408/head
Ahmet Çotur 6 years ago
parent
commit
5255a61986
  1. 1
      modules/audit-logging/src/Volo.Abp.AuditLogging.MongoDB/Volo/Abp/AuditLogging/MongoDB/MongoAuditLogRepository.cs

1
modules/audit-logging/src/Volo.Abp.AuditLogging.MongoDB/Volo/Abp/AuditLogging/MongoDB/MongoAuditLogRepository.cs

@ -192,6 +192,7 @@ namespace Volo.Abp.AuditLogging.MongoDB
string entityTypeFullName = null)
{
return GetMongoQueryable()
.Where(x => x.EntityChanges != null)
.WhereIf(auditLogId.HasValue, e => e.Id == auditLogId)
.WhereIf(startTime.HasValue, e => e.EntityChanges.Any(ec => ec.ChangeTime >= startTime))
.WhereIf(endTime.HasValue, e => e.EntityChanges.Any(ec => ec.ChangeTime >= endTime))

Loading…
Cancel
Save