diff --git a/app/jobs/cron/purge_old_email_event_job.rb b/app/jobs/cron/purge_old_email_event_job.rb index b748a0fea..5de61c5c0 100644 --- a/app/jobs/cron/purge_old_email_event_job.rb +++ b/app/jobs/cron/purge_old_email_event_job.rb @@ -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