mirror of
https://github.com/bitwarden/server.git
synced 2025-06-20 02:48:03 -05:00
Update src/Infrastructure.EntityFramework/KeyManagement/Repositories/UserSignatureKeyPairRepository.cs
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
This commit is contained in:
parent
62698497c1
commit
9e323d5bd5
@ -16,7 +16,7 @@ public class UserSignatureKeyPairRepository(IServiceScopeFactory serviceScopeFac
|
||||
{
|
||||
await using var scope = ServiceScopeFactory.CreateAsyncScope();
|
||||
var dbContext = GetDatabaseContext(scope);
|
||||
var signingKeys = await dbContext.UserSignatureKeyPairs.FindAsync(userId);
|
||||
var signingKeys = await dbContext.UserSignatureKeyPairs.FirstOrDefaultAsync(x => x.UserId == userId);
|
||||
if (signingKeys == null)
|
||||
{
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user