We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f771e3 commit 93a744bCopy full SHA for 93a744b
backend/src/api/controllers/result.ts
@@ -437,7 +437,12 @@ export async function addResult(
437
438
if (completedEvent.mode === "time" && completedEvent.mode2 === "60") {
439
void UserDAL.incrementBananas(uid, completedEvent.wpm);
440
- if (isPb && user.discordId !== undefined && user.discordId !== "") {
+ if (
441
+ isPb &&
442
+ user.discordId !== undefined &&
443
+ user.discordId !== "" &&
444
+ user.lbOptOut !== true
445
+ ) {
446
void GeorgeQueue.updateDiscordRole(user.discordId, completedEvent.wpm);
447
}
448
0 commit comments