upgrade moment

This commit is contained in:
Matteo Pagliazzi 2014-10-01 13:01:27 +02:00
parent 3aa450f8d4
commit 9ccf2c8d11
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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();