Find the client

This commit is contained in:
Paul Schneider
2025-07-30 15:45:50 +01:00
parent 124f3092fb
commit b4d9bd502d

View File

@ -16,8 +16,8 @@ public class ClientStore : IClientStore
public async Task<Client> FindClientByIdAsync(string clientId)
{
var clientFromDb = await ApplicationDbContext.Client.FirstAsync(c => c.Id == clientId);
var clientFromDb = await ApplicationDbContext.Client.FirstOrDefaultAsync(c => c.Id == clientId);
if (clientFromDb == null) return null;
return new Client
{
ClientId = clientFromDb.Id,