Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
Fixed notification reason
  • Loading branch information
weighsone authored Feb 4, 2025
1 parent 9eac9e1 commit 016d14f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ export async function redeemAccount(account: AccountConfig): Promise<void> {
if (e.response) {
if (e.response.body) {
L.error(e.response.body);
await sendNotification(account.email, NotificationReason.FAILURE, e.response.body);
await sendNotification(account.email, NotificationReason.PURCHASE_ERROR, e.response.body);
}

Check failure on line 64 in src/index.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎·····`
else {
L.error(e.response);
await sendNotification(account.email, NotificationReason.FAILURE, e.response);
await sendNotification(account.email, NotificationReason.PURCHASE_ERROR, e.response);
}
}
L.error(e);
Expand Down

0 comments on commit 016d14f

Please sign in to comment.