fix(subs): try again on gifts
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user