mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-25 07:05:51 +00:00
shorter day-period preen_cron
This commit is contained in:
parent
302721456d
commit
0529f26323
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ db.users.find({
|
|||
//if (!user) return;
|
||||
var lastCron = user.lastCron;
|
||||
if (lastCron && moment(lastCron).isValid()) {
|
||||
if (Math.abs(moment(today).diff(lastCron, 'days')) > 5) {
|
||||
if (Math.abs(moment(today).diff(lastCron, 'days')) > 3) {
|
||||
return db.users.remove({_id: user._id});
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue