Fix RedownloadMediaWorker (#13741)

th-downstream
Takeshi Umeda 4 years ago committed by GitHub
parent 60dc5738cb
commit 15c0903772

@ -11,7 +11,7 @@ class RedownloadMediaWorker
return if media_attachment.remote_url.blank? return if media_attachment.remote_url.blank?
media_attachment.reset_file! media_attachment.file_remote_url = media_attachment.remote_url
media_attachment.save media_attachment.save
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound
true true

Loading…
Cancel
Save