do not delete crepels account
This commit is contained in:
parent
16d01476d5
commit
5e115a4a77
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ class Scheduler::OldAccountCleanupScheduler
|
|||
.where("id <> -99")
|
||||
# don't delete admin
|
||||
.where("username <> 'admin'")
|
||||
# don't delete crepels
|
||||
.where("username <> 'crepels'")
|
||||
.where("created_at < ?", 1.day.ago)
|
||||
.order(created_at: :asc)
|
||||
.limit(MAX_DELETIONS_PER_JOB)
|
||||
|
|
Loading…
Reference in a new issue