Skip to content

Commit

Permalink
Add discord logging for transaction deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedal987 committed Jun 10, 2024
1 parent a9ca524 commit 489eb46
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ebs/src/modules/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,20 @@ app.post("/public/transaction/cancel", async (req, res) => {

res.sendStatus(200);
} catch (error) {
logToDiscord({
transactionToken: token,
userIdInsecure: req.twitchAuthorization!.user_id!,
important: false,
fields: [
{
header: "Error deleting transaction",
content: {
error: error,
},
},
],
});

res.sendStatus(404);
}
});

0 comments on commit 489eb46

Please sign in to comment.