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