analizators/2178

This commit is contained in:
Anton Suhorukov 2022-01-19 16:36:03 +03:00
parent e046f6f8df
commit 547b78b72f
3 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ namespace ASC.AuditTrail
if (fromDate.HasValue && to.HasValue)
{
query = query.Where(q => q.AuditEvent.Date >= fromDate & q.AuditEvent.Date <= to);
query = query.Where(q => q.AuditEvent.Date >= fromDate && q.AuditEvent.Date <= to);
}
if (limit.HasValue)

View File

@ -101,7 +101,7 @@ namespace ASC.AuditTrail.Data
if (from.HasValue && to.HasValue)
{
query = query.Where(l => l.Date >= from & l.Date <= to);
query = query.Where(l => l.Date >= from && l.Date <= to);
}
return query.Count();

View File

@ -83,7 +83,7 @@ namespace ASC.Web.Files
.Join(FilesDbContext.BunchObjects, a => a.tree.ParentId.ToString(), b => b.LeftNode, (fileTree, bunch) => new { fileTree.file, fileTree.tree, bunch })
.Where(r => r.file.TenantId == r.bunch.TenantId)
.Where(r => r.file.TenantId == TenantManager.GetCurrentTenant().TenantId)
.Where(r => r.bunch.RightNode.StartsWith("files/my/") | r.bunch.RightNode.StartsWith("files/trash/"))
.Where(r => r.bunch.RightNode.StartsWith("files/my/") || r.bunch.RightNode.StartsWith("files/trash/"))
.GroupBy(r => r.file.CreateBy)
.Select(r => new { CreateBy = r.Key, Size = r.Sum(a => a.file.ContentLength) });