mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Email subs reminders release (#11216)
* add subscriptions reminders emails * add field to record the last sub reminder
This commit is contained in:
@@ -60,6 +60,7 @@ export default {
|
||||
'weeklyRecaps',
|
||||
'onboarding',
|
||||
'majorUpdates',
|
||||
'subscriptionReminders',
|
||||
]),
|
||||
// list of email-only notifications
|
||||
onlyEmailsIds: Object.freeze([
|
||||
@@ -67,6 +68,7 @@ export default {
|
||||
'importantAnnouncements',
|
||||
'weeklyRecaps',
|
||||
'onboarding',
|
||||
'subscriptionReminders',
|
||||
]),
|
||||
};
|
||||
},
|
||||
|
||||
@@ -125,6 +125,7 @@
|
||||
"weeklyRecaps": "Summaries of your account activity in the past week (Note: this is currently disabled due to performance issues, but we hope to have this back up and sending e-mails again soon!)",
|
||||
"onboarding": "Guidance with setting up your Habitica account",
|
||||
"majorUpdates": "Important announcements",
|
||||
"subscriptionReminders": "Subscriptions Reminders",
|
||||
"questStarted": "Your Quest has Begun",
|
||||
"invitedQuest": "Invited to Quest",
|
||||
"kickedGroup": "Kicked from group",
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -481,6 +481,7 @@ let schema = new Schema({
|
||||
weeklyRecaps: {$type: Boolean, default: true},
|
||||
onboarding: {$type: Boolean, default: true},
|
||||
majorUpdates: {$type: Boolean, default: true},
|
||||
subscriptionReminders: {$type: Boolean, default: true},
|
||||
},
|
||||
pushNotifications: {
|
||||
unsubscribeFromAll: {$type: Boolean, default: false},
|
||||
|
||||
Reference in New Issue
Block a user