analizators/2178
This commit is contained in:
parent
e046f6f8df
commit
547b78b72f
@ -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)
|
||||
|
@ -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();
|
||||
|
@ -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) });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user