From 9ccf2c8d11a42343df6ffeef1d66cb5b577236e8 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 1 Oct 2014 13:01:27 +0200 Subject: [PATCH] upgrade moment --- package.json | 2 +- src/controllers/payments.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 22ecc77ca6..9ec28b05b9 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ "js2xmlparser": "~0.1.2", "lodash": "~2.4.1", "method-override": "~2.2.0", - "moment": "~2.4.0", "mongoose": "~3.8.17", + "moment": "~2.8.3", "mongoose-id-autoinc": "~2013.7.14-4", "nconf": "*", "newrelic": "~1.11.2", diff --git a/src/controllers/payments.js b/src/controllers/payments.js index d117d02ca5..ad69489be4 100644 --- a/src/controllers/payments.js +++ b/src/controllers/payments.js @@ -108,7 +108,7 @@ function cancelSubscription(user, data){ if(isProduction) emailUser(user, 'cancel-subscription'); user.purchased.plan.dateTerminated = moment( now.format('MM') + '/' + moment(du).format('DD') + '/' + now.format('YYYY') ) - .add('month',1) + .add(1, 'month') .toDate(); ga.event('unsubscribe', 'Stripe').send();