diff --git a/AsbCloudInfrastructure/Repository/UserRoleRepository.cs b/AsbCloudInfrastructure/Repository/UserRoleRepository.cs index 8fc9b10a..2ca837d3 100644 --- a/AsbCloudInfrastructure/Repository/UserRoleRepository.cs +++ b/AsbCloudInfrastructure/Repository/UserRoleRepository.cs @@ -192,8 +192,8 @@ namespace AsbCloudInfrastructure.Repository var newRelations = dto.Roles.Select(r => new RelationUserRoleUserRole { Id = dto.Id, IdInclude = r.Id }); await dbContext.RelationUserRoleUserRoles.AddRangeAsync(newRelations, token); await dbContext.SaveChangesAsync(token); - DropCacheRelationUserRoleUserRole(); } + DropCacheRelationUserRoleUserRole(); } private async Task UpdatePermissionsAsync(UserRoleDto dto, CancellationToken token) @@ -216,8 +216,8 @@ namespace AsbCloudInfrastructure.Repository await dbContext.RelationUserRolePermissions.AddRangeAsync(newRelations, token); await dbContext.SaveChangesAsync(token); - DropCacheRelationUserRolePermissions(); } + DropCacheRelationUserRolePermissions(); } private Task> GetCacheUserRoleAsync(CancellationToken token)