mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-19 10:14:11 +00:00
add more logging
This commit is contained in:
parent
625077fc1a
commit
6e0341a4ff
1 changed files with 7 additions and 1 deletions
|
|
@ -91,7 +91,13 @@ api.handleWebhooks = {
|
|||
method: 'POST',
|
||||
url: '/stripe/webhooks',
|
||||
async handler (req, res) {
|
||||
await stripePayments.handleWebhooks({requestBody: req.body});
|
||||
console.log('start handling webhook');
|
||||
|
||||
try {
|
||||
await stripePayments.handleWebhooks({requestBody: req.body});
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
return res.respond(200, {});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue