Implemented audit logging and automated logging

This commit is contained in:
2026-09-23 05:33:16 +02:00
parent 717b891554
commit ef134a5b3c
18 changed files with 250 additions and 38 deletions
@@ -85,7 +85,7 @@ public sealed class UserService(IDbContextFactory<ApplicationDbContext> contextF
var user = await context.Users.AsNoTracking()
.FirstOrDefaultAsync(f => f.Id == userId, cancellationToken);
return Result.FailIf(user is null, NotFoundError.New)
.ToResult(user!.Map());
return Result.FailIf(user == null, NotFoundError.New)
.ToResult(user?.Map()!);
}));
}