Skip to content

Commit

Permalink
Merge branch 'develop' into feature/personal
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeySafronov authored Jul 12, 2021
2 parents 2950f72 + 354b742 commit 8388a4e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
4 changes: 3 additions & 1 deletion common/ASC.Api.Core/Auth/ConfirmAuthHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ protected override Task<AuthenticateResult> HandleAuthenticateAsync()
}
else
{
if(emailValidationKeyModel.Type == Web.Studio.Utility.ConfirmType.EmailActivation)
if(emailValidationKeyModel.Type == Web.Studio.Utility.ConfirmType.EmailActivation ||
emailValidationKeyModel.Type == Web.Studio.Utility.ConfirmType.EmpInvite ||
emailValidationKeyModel.Type == Web.Studio.Utility.ConfirmType.LinkInvite)
{
userId = ASC.Core.Configuration.Constants.CoreSystem.ID;
}
Expand Down
10 changes: 4 additions & 6 deletions products/ASC.Files/Core/Core/Dao/TeamlabDao/FileDao.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1264,17 +1264,15 @@ public IEnumerable<int> GetTenantsWithFeeds(DateTime fromTime)
{
var q1 = FilesDbContext.Files
.Where(r => r.ModifiedOn > fromTime)
.Select(r => r.TenantId)
.GroupBy(r => r)
.Where(r => r.Any())
.GroupBy(r => r.TenantId)
.Where(r => r.Count() > 0)
.Select(r => r.Key)
.ToList();

var q2 = FilesDbContext.Security
.Where(r => r.TimeStamp > fromTime)
.Select(r => r.TenantId)
.GroupBy(r => r)
.Where(r => r.Any())
.GroupBy(r => r.TenantId)
.Where(r => r.Count() > 0)
.Select(r => r.Key)
.ToList();

Expand Down
6 changes: 2 additions & 4 deletions products/ASC.Files/Core/Core/Dao/TeamlabDao/FolderDao.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1211,16 +1211,14 @@ public IEnumerable<int> GetTenantsWithFeedsForFolders(DateTime fromTime)
{
var q1 = FilesDbContext.Files
.Where(r => r.ModifiedOn > fromTime)
.Select(r => r.TenantId)
.GroupBy(r => r)
.GroupBy(r => r.TenantId)
.Where(r => r.Count() > 0)
.Select(r => r.Key)
.ToList();

var q2 = FilesDbContext.Security
.Where(r => r.TimeStamp > fromTime)
.Select(r => r.TenantId)
.GroupBy(r => r)
.GroupBy(r => r.TenantId)
.Where(r => r.Count() > 0)
.Select(r => r.Key)
.ToList();
Expand Down

0 comments on commit 8388a4e

Please sign in to comment.