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
+1 -1
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();