Skip to content

Commit

Permalink
Switched remove user count from added to removed
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxFoxxo committed Oct 29, 2023
1 parent a005e00 commit cdf762d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/Levels/Commands/UpdateAllXp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ await infoMsg.ModifyAsync(x =>
count = 0;
totalCount = removed.Count;

foreach (var addedUser in added)
foreach (var removedUser in removed)
{
await addedUser.Key.AddRolesAsync(addedUser.Value);
await removedUser.Key.RemoveRolesAsync(removedUser.Value);

if (count % 50 == 0)
await infoMsg.ModifyAsync(x =>
Expand Down

0 comments on commit cdf762d

Please sign in to comment.