mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
feat(emails): add support for weekly recap emails
This commit is contained in:
@@ -146,6 +146,8 @@ var UserSchema = new Schema({
|
||||
// Used to track the status of recapture emails sent to each user,
|
||||
// can be 0 - no email sent - 1, 2, 3 or 4 - 4 means no more email will be sent to the user
|
||||
recaptureEmailsPhase: {type: Number, 'default': 0},
|
||||
// Needed to track the tip to send inside the email
|
||||
weeklyRecapEmailsPhase: {type: Number, 'default': 0},
|
||||
communityGuidelinesAccepted: {type: Boolean, 'default': false},
|
||||
cronCount: {type:Number, 'default':0}
|
||||
},
|
||||
@@ -328,7 +330,8 @@ var UserSchema = new Schema({
|
||||
invitedQuest: {type: Boolean, 'default': true},
|
||||
//remindersToLogin: {type: Boolean, 'default': true},
|
||||
// Those importantAnnouncements are in fact the recapture emails
|
||||
importantAnnouncements: {type: Boolean, 'default': true}
|
||||
importantAnnouncements: {type: Boolean, 'default': true},
|
||||
weeklyRecaps: {type: Boolean, 'default': true}
|
||||
}
|
||||
},
|
||||
profile: {
|
||||
|
||||
Reference in New Issue
Block a user