mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05: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