1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 23:52:50 -05:00

SSO config revision date not updating fix (#934)

This commit is contained in:
Chad Scharf
2020-09-14 21:22:24 -04:00
committed by GitHub
parent c0e99d4047
commit 692b3970af
3 changed files with 14 additions and 2 deletions

View File

@ -57,5 +57,17 @@ namespace Bit.Core.Repositories.SqlServer
return results.ToList();
}
}
public override async Task CreateAsync(SsoConfig obj)
{
obj.CreationDate = obj.RevisionDate = DateTime.UtcNow;
await base.CreateAsync(obj);
}
public override async Task ReplaceAsync(SsoConfig obj)
{
obj.RevisionDate = DateTime.UtcNow;
await base.ReplaceAsync(obj);
}
}
}