From cdf762d9dad733854b0f60cc756697eb48c46f92 Mon Sep 17 00:00:00 2001 From: FeroxFoxxo Date: Sun, 29 Oct 2023 23:11:49 +1300 Subject: [PATCH] Switched remove user count from added to removed --- backend/Levels/Commands/UpdateAllXp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/Levels/Commands/UpdateAllXp.cs b/backend/Levels/Commands/UpdateAllXp.cs index 00ce3a53b..0521248a4 100644 --- a/backend/Levels/Commands/UpdateAllXp.cs +++ b/backend/Levels/Commands/UpdateAllXp.cs @@ -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 =>