Email subs reminders release (#11216)

* add subscriptions reminders emails

* add field to record the last sub reminder
This commit is contained in:
Matteo Pagliazzi
2019-06-10 22:37:30 +02:00
committed by GitHub
parent b9d9a17aca
commit 3c31945524
4 changed files with 5 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ export let schema = new mongoose.Schema({
extraMonths: {$type: Number, default: 0},
gemsBought: {$type: Number, default: 0},
mysteryItems: {$type: Array, default: () => []},
lastReminderDate: Date, // indicates the last time a subscription reminder was sent
lastBillingDate: Date, // Used only for Amazon Payments to keep track of billing date
additionalData: mongoose.Schema.Types.Mixed, // Example for Google: {'receipt': 'serialized receipt json', 'signature': 'signature string'}
nextPaymentProcessing: Date, // indicates when the queue server should process this subscription again.