mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: don't use destroy_all
when delete_all
is enough
This commit is contained in:
parent
0a96829508
commit
05f0db0a20
@ -10,7 +10,7 @@ module Jobs
|
||||
|
||||
EmailLog.where(reply_key: nil)
|
||||
.where("created_at < ?", threshold)
|
||||
.destroy_all
|
||||
.delete_all
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user