fix(cron): PurgeOldEmailEvent in batches
This commit is contained in:
parent
d20114f978
commit
6b87c290cb
1 changed files with 1 additions and 1 deletions
|
@ -2,6 +2,6 @@ class Cron::PurgeOldEmailEventJob < Cron::CronJob
|
|||
self.schedule_expression = "every week at 3:00"
|
||||
|
||||
def perform
|
||||
EmailEvent.outdated.destroy_all
|
||||
EmailEvent.outdated.in_batches.destroy_all
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue