mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
use discriminator field to distinguish users with weekly recap emails enabled
This commit is contained in:
@@ -517,7 +517,7 @@ UserSchema.pre('save', function(next) {
|
||||
}
|
||||
|
||||
// Enable weekly recap emails for old users who sign in
|
||||
if(!this.flags.lastWeeklyRecap){
|
||||
if(this.flags.lastWeeklyRecapDiscriminator === true){
|
||||
this.flags.lastWeeklyRecap = moment().subtract(6, 'days').toDate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user