mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 16:46:12 +08:00
Upload.url can't be NULL
This commit is contained in:
parent
085eaaf18d
commit
ab8cdd6b5b
|
@ -9,7 +9,7 @@ module Jobs
|
|||
Upload
|
||||
.where("retain_hours IS NULL OR created_at < current_timestamp - interval '1 hour' * retain_hours")
|
||||
.where("created_at < ?", grace_period.hour.ago)
|
||||
.where(url: nil)
|
||||
.where(url: "")
|
||||
.destroy_all
|
||||
|
||||
return unless SiteSetting.clean_up_uploads?
|
||||
|
|
Loading…
Reference in New Issue
Block a user