Skip to content

Commit

Permalink
fix(webhook-ecom): Add resourceId in debbug
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Mar 22, 2024
1 parent 2e859a5 commit 7089974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/routes/ecom/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ exports.post = async ({ appSdk, admin }, req, res) => {
}, { merge: true })
.catch(console.error)
} catch (err) {
console.error('>> Webhook E-com: Error when canceling in Pagar.Me, return the status')
console.error(`>> Webhook E-com: Error when canceling in Pagar.Me, return the status #${resourceId}`)
await updateOrder(appSdk, storeId, resourceId, auth, { status: 'open' })
res.send(ECHO_SUCCESS)
}
} else {
console.log('>> Webhook E-com: Subscription already canceled or does not exist')
console.log(`>> Webhook E-com: Subscription #${resourceId} already canceled or does not exist`)
res.send(ECHO_SUCCESS)
}
} else {
Expand Down

0 comments on commit 7089974

Please sign in to comment.