chore(promo): end gift subs promo

This commit is contained in:
Sabe Jones
2017-01-07 15:42:03 +00:00
parent 857aa5827b
commit 1c859fc91f
4 changed files with 2 additions and 18 deletions

View File

@@ -145,10 +145,6 @@ api.checkoutSuccess = {
await paypalPaymentExecute(paymentId, { payer_id: customerId });
await payments[method](data);
if (gift && gift.type === 'subscription' && gift.member._id !== data.user._id) {
gift.member = data.user;
await payments.createSubscription(data);
}
res.redirect('/');
},
};