fix(subs): try again on gifts

This commit is contained in:
Kalista Payne
2024-10-18 14:50:17 -05:00
parent 6e1fb7df38
commit 935e9fd6ec
2 changed files with 5 additions and 2 deletions
@@ -365,7 +365,7 @@ export default {
return {
gift: {
type: 'subscription',
subscription: { key: 'basic_earned' },
subscription: { key: 'basic_12mo' },
},
icons: Object.freeze({
check,
@@ -95,7 +95,10 @@ export async function applyGemPayment (session) {
};
if (gift) {
if (gift.type === 'subscription') method = 'createSubscription';
if (gift.type === 'subscription') {
method = 'createSubscription';
data.autoRenews = false;
}
data.paymentMethod = 'Gift';
const member = await User.findById(gift.uuid).exec();