mirror of
https://github.com/bitwarden/server
synced 2026-01-08 03:23:20 +00:00
delete expired grants job
This commit is contained in:
@@ -6,5 +6,6 @@ namespace Bit.Core.Repositories
|
||||
{
|
||||
Task UpdateStatisticsAsync();
|
||||
Task RebuildIndexesAsync();
|
||||
Task DeleteExpiredGrantsAsync();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,5 +38,16 @@ namespace Bit.Core.Repositories.SqlServer
|
||||
commandTimeout: 86400);
|
||||
}
|
||||
}
|
||||
|
||||
public async Task DeleteExpiredGrantsAsync()
|
||||
{
|
||||
using(var connection = new SqlConnection(ConnectionString))
|
||||
{
|
||||
await connection.ExecuteAsync(
|
||||
"[dbo].[Grant_DeleteExpired]",
|
||||
commandType: CommandType.StoredProcedure,
|
||||
commandTimeout: 86400);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user