From e908d6a655ef8391292e69ec70defb492159c9c8 Mon Sep 17 00:00:00 2001 From: "ai.astrakhantsev" Date: Tue, 8 Nov 2022 12:12:46 +0500 Subject: [PATCH] #7205798 drop cache method --- AsbCloudInfrastructure/Repository/UserRoleRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)