mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Made correction to the domain used to domains that have been unverified after 72 hours. Instead of doing a greater than or equal to the condition is set to a fixed period 4, so domains after 4 days which are uneverified would not be picked up by the service (#2729)
This commit is contained in:
@ -119,7 +119,7 @@ public class OrganizationDomainRepository : Repository<Core.Entities.Organizatio
|
||||
//Get domains that have not been verified after 72 hours
|
||||
var domains = dbContext.OrganizationDomains
|
||||
.AsEnumerable()
|
||||
.Where(x => (DateTime.UtcNow - x.CreationDate).Days >= 4
|
||||
.Where(x => (DateTime.UtcNow - x.CreationDate).Days == 4
|
||||
&& x.VerifiedDate == null)
|
||||
.ToList();
|
||||
|
||||
|
@ -8,6 +8,7 @@ BEGIN
|
||||
FROM
|
||||
[dbo].[OrganizationDomain]
|
||||
WHERE
|
||||
DATEDIFF(DAY, [CreationDate], GETUTCDATE()) >= 4 --Get domains that have not been verified after 3 days (72 hours)
|
||||
DATEDIFF(DAY, [CreationDate], GETUTCDATE()) = 4 --Get domains that have not been verified after 3 days (72 hours)
|
||||
AND
|
||||
[VerifiedDate] IS NULL
|
||||
[VerifiedDate] IS NULL
|
||||
END
|
Reference in New Issue
Block a user