diff --git a/ebs/src/modules/transactions.ts b/ebs/src/modules/transactions.ts index d5dd67c..3ee9c40 100644 --- a/ebs/src/modules/transactions.ts +++ b/ebs/src/modules/transactions.ts @@ -205,7 +205,7 @@ app.post("/public/transaction", async (req, res) => { }); app.post("/public/transaction/cancel", async (req, res) => { - const token = req.body as string; + const token = req.body.token as string; // remove transaction from db try { diff --git a/frontend/www/src/modules/auth.ts b/frontend/www/src/modules/auth.ts index d3400cd..5d0c3a2 100644 --- a/frontend/www/src/modules/auth.ts +++ b/frontend/www/src/modules/auth.ts @@ -102,7 +102,7 @@ Twitch.ext.bits.onTransactionCancelled(async () => { headers: { "Content-Type": "application/json", }, - body: transactionToken, + body: JSON.stringify({ "token": transactionToken }), }); hideProcessingModal(); showErrorModal("Transaction cancelled.", `Transaction ID: ${transactionToken}`);