mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-22 04:45:46 -04:00
BUGFIX: broken schedule
This commit is contained in:
parent
b031327a46
commit
0f37699d5f
1 changed files with 2 additions and 3 deletions
|
@ -12,9 +12,8 @@ module Jobs
|
|||
|
||||
Upload.where("created_at < ?", grace_period.hour.ago)
|
||||
.where("id NOT IN (SELECT upload_id from post_uploads)")
|
||||
.where("id NOT IN (SELECT system_upload_id from post_uploads)")
|
||||
.where("id NOT IN (SELECT custom_upload_id from post_uploads)")
|
||||
.where("id NOT IN (SELECT gravatar_upload_id from post_uploads)")
|
||||
.where("id NOT IN (SELECT custom_upload_id from user_avatars)")
|
||||
.where("id NOT IN (SELECT gravatar_upload_id from user_avatars)")
|
||||
.where("url NOT IN (?)", uploads_used_as_profile_backgrounds)
|
||||
.find_each do |upload|
|
||||
upload.destroy
|
||||
|
|
Loading…
Reference in a new issue