Skip to content

Commit

Permalink
fix(webhook ecom): Update debug errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Nov 24, 2023
1 parent 5a36888 commit e490f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/routes/ecom/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ exports.post = async ({ appSdk, admin }, req, res) => {
}
} catch (err) {
console.error(`Error trying to update signature #${subscription.myId}`)
if (error.response) {
if (err.response) {
const { status, data } = error.response
console.log('Error: ', status, ' ', data && JSON.stringify(data))
}
Expand Down

0 comments on commit e490f19

Please sign in to comment.