From bebe2dde214e7765df0bacf897259e5ea862f537 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Mon, 25 May 2015 09:58:25 -0700 Subject: [PATCH] Adding a log to check out what's going on with updating of sponsored subscriptions. --- multicore.coffee | 2 +- server/routes/stripe.coffee | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/multicore.coffee b/multicore.coffee index 2ce343d55..de179e25e 100644 --- a/multicore.coffee +++ b/multicore.coffee @@ -40,7 +40,7 @@ deaths = [ 'Went to heaven prematurely.' 'Teleported out of the dungeon and fell to its death.' 'Panic.' - 'Killed by a minotuar, while dressing up.' + 'Killed by a minotaur, while dressing up.' 'Petrified by trying to help a cockatrice out of a pit.' 'Killed by a luckstone.' 'Killed by a panther, while taking off clothes.' diff --git a/server/routes/stripe.coffee b/server/routes/stripe.coffee index 39b88564e..e3d0bb956 100644 --- a/server/routes/stripe.coffee +++ b/server/routes/stripe.coffee @@ -161,6 +161,7 @@ module.exports.setup = (app) -> _.remove(stripeInfo.recipients, (s) -> s.userID is recipient.id) options = quantity: utils.getSponsoredSubsAmount(subscription.plan.amount, stripeInfo.recipients.length, stripeInfo.subscriptionID?) + console.log 'Updating sponsored subscription', stripeInfo.customerID, stripeInfo.sponsorSubscriptionID, options, 'from stripeInfo', stripeInfo, 'and subscription', subscription, 'for user', recipient.id, 'with sponsor', sponsor.id stripe.customers.updateSubscription stripeInfo.customerID, stripeInfo.sponsorSubscriptionID, options, (err, subscription) => if err logStripeWebhookError(err)