mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
add basic test, disable etag on post routes as well, paypal ipn: prevent set headers after response error
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* eslint-disable camelcase */
|
||||
import paypalPayments from '../../../libs/payments/paypal';
|
||||
import logger from '../../../libs/logger';
|
||||
import shared from '../../../../common';
|
||||
import {
|
||||
authWithSession,
|
||||
@@ -171,7 +172,9 @@ api.ipn = {
|
||||
async handler (req, res) {
|
||||
res.sendStatus(200);
|
||||
|
||||
await paypalPayments.ipn(req.body);
|
||||
paypalPayments
|
||||
.ipn(req.body)
|
||||
.catch(err => logger.error(err));
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user