Skip to content

Commit

Permalink
Fix RedownloadMediaWorker (#13741)
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo authored May 12, 2020
1 parent af6d356 commit 706972b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/redownload_media_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def perform(id)

return if media_attachment.remote_url.blank?

media_attachment.reset_file!
media_attachment.file_remote_url = media_attachment.remote_url
media_attachment.save
rescue ActiveRecord::RecordNotFound
true
Expand Down

0 comments on commit 706972b

Please sign in to comment.