mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-09-30 18:29:36 +02:00
identity: keep all grants for 12 hours before cleaning up
This commit is contained in:
1 parent
6f47574556
commit
99a7ffa6ae
1 file changed
+1
-1
@@ -67,7 +67,7 @@ namespace Streetwriters.Identity.Services
|
|||||||
|
|
||||||
public Task RemoveExpired()
|
public Task RemoveExpired()
|
||||||
{
|
{
|
||||||
return Remove(x => x.Expiration < DateTime.UtcNow.AddHours(12));
|
return Remove(x => x.Expiration.HasValue && x.Expiration.Value.AddHours(12) < DateTime.UtcNow);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task InsertOrUpdate(Expression<Func<PersistedGrant, bool>> filter, PersistedGrant entity)
|
public Task InsertOrUpdate(Expression<Func<PersistedGrant, bool>> filter, PersistedGrant entity)
|
||||||
|
|||||||
Reference in new issue
Block a user