fix linting

This commit is contained in:
Matteo Pagliazzi
2017-03-25 17:48:46 +01:00
parent 6e0341a4ff
commit fd9f3a32c4
2 changed files with 1 additions and 17 deletions

View File

@@ -91,13 +91,7 @@ api.handleWebhooks = {
method: 'POST',
url: '/stripe/webhooks',
async handler (req, res) {
console.log('start handling webhook');
try {
await stripePayments.handleWebhooks({requestBody: req.body});
} catch (err) {
console.log(err);
}
await stripePayments.handleWebhooks({requestBody: req.body});
return res.respond(200, {});
},