Skip to content

Commit 1a3dca8

Browse files
committed
Isolate code redemption errors from Discord notifications in Google Script
1 parent ae6ddf9 commit 1a3dca8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

services/google-script/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,12 @@ function checkInGame (gameName) {
587587
continue;
588588
}
589589

590-
await game.redeemCodes(success.account);
590+
try {
591+
await game.redeemCodes(success.account);
592+
}
593+
catch (e) {
594+
console.error(`Code redemption failed for ${gameName}:`, e);
595+
}
591596
}
592597
}
593598
else {

0 commit comments

Comments
 (0)