diff --git a/src/Infrastructure/TakeoutSaaS.Infrastructure/Identity/Persistence/EfRoleTemplateRepository.cs b/src/Infrastructure/TakeoutSaaS.Infrastructure/Identity/Persistence/EfRoleTemplateRepository.cs index 2f77700..b009960 100644 --- a/src/Infrastructure/TakeoutSaaS.Infrastructure/Identity/Persistence/EfRoleTemplateRepository.cs +++ b/src/Infrastructure/TakeoutSaaS.Infrastructure/Identity/Persistence/EfRoleTemplateRepository.cs @@ -103,6 +103,7 @@ public sealed class EfRoleTemplateRepository(IdentityDbContext dbContext) : IRol .ToListAsync(cancellationToken); dbContext.RoleTemplatePermissions.RemoveRange(existing); + await dbContext.SaveChangesAsync(cancellationToken); var toAdd = normalized.Select(code => new RoleTemplatePermission {