mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
add more logging
This commit is contained in:
@@ -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, {});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user