feat(amazon-payments): add a lastBillingDate attribute

This commit is contained in:
Matteo Pagliazzi
2015-07-01 18:59:51 +02:00
parent 851868296f
commit 4e7afcbe94
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -109,6 +109,7 @@ var UserSchema = new Schema({
extraMonths: {type:Number, 'default':0},
gemsBought: {type: Number, 'default': 0},
mysteryItems: {type: Array, 'default': []},
lastBillingDate: Date, // Used only for Amazon Payments to keep track of billing date
consecutive: {
count: {type:Number, 'default':0},
offset: {type:Number, 'default':0}, // when gifted subs, offset++ for each month. offset-- each new-month (cron). count doesn't ++ until offset==0