mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 13:09:41 +00:00
use discriminator field to distinguish users with weekly recap emails enabled
This commit is contained in:
parent
a82270fbaa
commit
95b481b31d
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue