feat(emails): add support for weekly recap emails

This commit is contained in:
Matteo Pagliazzi
2015-04-22 16:30:53 +02:00
parent c699fcde49
commit 37f7db3c4e
3 changed files with 10 additions and 1 deletions

View File

@@ -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: {