Refactored cache services

This commit is contained in:
2026-09-25 03:04:37 +02:00
parent f39eb9d8fe
commit 26df423180
6 changed files with 379 additions and 66 deletions
@@ -12,6 +12,7 @@ public sealed class IdentityService(IDbContextFactory<ApplicationDbContext> cont
{
await using var context = await contextFactory.CreateDbContextAsync(cancellationToken);
// TODO: Ensure TenantUser status is checked
var userExistsAndActive = await context.Users
.AnyAsync(u => u.Id == userId && u.Status == ActivityStatus.Active, cancellationToken);