From 489eb46b8a9ff83a504130363c6d3b0a4d987213 Mon Sep 17 00:00:00 2001 From: Vedal Date: Tue, 11 Jun 2024 00:10:21 +0100 Subject: [PATCH] Add discord logging for transaction deletion --- ebs/src/modules/transactions.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ebs/src/modules/transactions.ts b/ebs/src/modules/transactions.ts index f2ce2d4..d5dd67c 100644 --- a/ebs/src/modules/transactions.ts +++ b/ebs/src/modules/transactions.ts @@ -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); } });