mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
remove unused loggin for ios purchases
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
|||||||
} from '../../../libs/errors';
|
} from '../../../libs/errors';
|
||||||
import googlePayments from '../../../libs/googlePayments';
|
import googlePayments from '../../../libs/googlePayments';
|
||||||
import applePayments from '../../../libs/applePayments';
|
import applePayments from '../../../libs/applePayments';
|
||||||
import logger from '../../../libs/logger';
|
|
||||||
|
|
||||||
let api = {};
|
let api = {};
|
||||||
|
|
||||||
@@ -88,12 +87,6 @@ api.iapiOSVerify = {
|
|||||||
url: '/iap/ios/verify',
|
url: '/iap/ios/verify',
|
||||||
middlewares: [authWithHeaders()],
|
middlewares: [authWithHeaders()],
|
||||||
async handler (req, res) {
|
async handler (req, res) {
|
||||||
// @TODO remove once debugging is done
|
|
||||||
logger.info('Debugging iOS verify route', {
|
|
||||||
body: req.body,
|
|
||||||
headers: req.headers,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!req.body.transaction) throw new BadRequest(res.t('missingReceipt'));
|
if (!req.body.transaction) throw new BadRequest(res.t('missingReceipt'));
|
||||||
|
|
||||||
let appleRes = await applePayments.verifyGemPurchase(res.locals.user, req.body.transaction.receipt, req.headers);
|
let appleRes = await applePayments.verifyGemPurchase(res.locals.user, req.body.transaction.receipt, req.headers);
|
||||||
|
|||||||
Reference in New Issue
Block a user