Implemented audit logging and automated logging
This commit is contained in:
@@ -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()!);
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user