diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2020-05-12 22:55:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 15:55:25 +0200 |
commit | 706972b4bab8c5a0a28f66ebf91716786f1e2690 (patch) | |
tree | c37d1706bfef1b5526fe2b13e2d01690db1b0d08 /app/workers | |
parent | af6d35627978047724612c027e60cb0a89cb2eef (diff) |
Fix RedownloadMediaWorker (#13741)
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/redownload_media_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/redownload_media_worker.rb b/app/workers/redownload_media_worker.rb index 98e995918..071501a49 100644 --- a/app/workers/redownload_media_worker.rb +++ b/app/workers/redownload_media_worker.rb @@ -11,7 +11,7 @@ class RedownloadMediaWorker 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 |