Skip to content

Commit

Permalink
chore: update webhook replacing number by string
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis committed Apr 12, 2024
1 parent 72f89aa commit cbdbefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/routes/appmax/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ exports.post = ({ appSdk, admin }, req, res) => {
const order = await findOrderByTransactionId(appSdk, storeId, auth, id)
if (order) {
const transaction = order.transactions.find(({ intermediator }) => {
return intermediator && intermediator.transaction_id === id
return intermediator && intermediator.transaction_id === String(id)
})
if (transaction && transaction._id) {
// update payment
Expand Down

0 comments on commit cbdbefe

Please sign in to comment.