do not delete crepels account

This commit is contained in:
Sebastian Jambor 2023-04-18 21:49:45 +02:00
parent 16d01476d5
commit 5e115a4a77

View file

@ -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)