mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
🐛Fix sponsored subscription error logging bug
This commit is contained in:
parent
742b924933
commit
0fee075470
1 changed files with 1 additions and 1 deletions
|
@ -530,7 +530,7 @@ class SubscriptionHandler extends Handler
|
|||
quantity: getSponsoredSubsAmount(subscriptions.basic.amount, stripeInfo.recipients.length, stripeInfo.subscriptionID?)
|
||||
stripe.customers.updateSubscription stripeInfo.customerID, stripeInfo.sponsorSubscriptionID, options, (err, subscription) =>
|
||||
if err
|
||||
logStripeWebhookError(err)
|
||||
@logSubscriptionError(user, 'Sponsored subscription quantity update error. ' + JSON.stringify(err))
|
||||
return done({res: 'Database error.', code: 500})
|
||||
done()
|
||||
|
||||
|
|
Loading…
Reference in a new issue