v2.0.6 #142

Merged
PxlLoewe merged 3 commits from staging into release 2026-01-06 12:58:25 +00:00
Showing only changes of commit dd39331c1a - Show all commits

View File

@@ -167,7 +167,7 @@ const removePermissionsForBannedUsers = async () => {
}, },
}); });
activePenalties.forEach(async (penalty) => { for (const penalty of activePenalties) {
const user = penalty.User; const user = penalty.User;
if (user.DiscordAccount) { if (user.DiscordAccount) {
@@ -178,14 +178,14 @@ const removePermissionsForBannedUsers = async () => {
); );
} }
user.FormerDiscordAccounts.forEach(async (formerAccount) => { for (const formerAccount of user.FormerDiscordAccounts) {
await changeMemberRoles( await changeMemberRoles(
formerAccount.discordId, formerAccount.discordId,
[DISCORD_ROLES.PILOT, DISCORD_ROLES.DISPATCHER], [DISCORD_ROLES.PILOT, DISCORD_ROLES.DISPATCHER],
"remove", "remove",
); );
}); }
}); }
}; };
cron.schedule("*/5 * * * *", async () => { cron.schedule("*/5 * * * *", async () => {