From 8edeb698ce87cb41d40827f473bfb07e26b3d199 Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 17 May 2024 13:00:36 +0800 Subject: [PATCH] Update EfCoreIdentityUserRepository.cs --- .../EntityFrameworkCore/EfCoreIdentityUserRepository.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs index 561a224926..a05e59a1d0 100644 --- a/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs +++ b/modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore/Volo/Abp/Identity/EntityFrameworkCore/EfCoreIdentityUserRepository.cs @@ -152,11 +152,10 @@ public class EfCoreIdentityUserRepository : EfCoreRepository().RemoveRange(userClaims); - } - - if (autoSave) - { - await dbContext.SaveChangesAsync(GetCancellationToken(cancellationToken)); + if (autoSave) + { + await dbContext.SaveChangesAsync(GetCancellationToken(cancellationToken)); + } } }