Skip to content

Commit

Permalink
Update EfCoreIdentityUserRepository.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
maliming committed May 17, 2024
1 parent 3a7b419 commit 8edeb69
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,10 @@ public virtual async Task RemoveClaimFromAllUsersAsync(string claimType, bool au
if (userClaims.Any())
{
(await GetDbContextAsync()).Set<IdentityUserClaim>().RemoveRange(userClaims);
}

if (autoSave)
{
await dbContext.SaveChangesAsync(GetCancellationToken(cancellationToken));
if (autoSave)
{
await dbContext.SaveChangesAsync(GetCancellationToken(cancellationToken));
}
}
}

Expand Down

0 comments on commit 8edeb69

Please sign in to comment.