Skip to content

Commit

Permalink
Send token for cancellation with JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedal987 committed Jun 10, 2024
1 parent 489eb46 commit 1da6115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ebs/src/modules/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/www/src/modules/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 1da6115

Please sign in to comment.