mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: don't use destroy_all
when delete_all
is enough
This commit is contained in:
parent
0a96829508
commit
05f0db0a20
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ module Jobs
|
|||
|
||||
EmailLog.where(reply_key: nil)
|
||||
.where("created_at < ?", threshold)
|
||||
.destroy_all
|
||||
.delete_all
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue