about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-04-06 14:11:22 +0200
committerGitHub <noreply@github.com>2020-04-06 14:11:22 +0200
commit0773a512ac5019663545992a3300ae7ca0974876 (patch)
tree0a45850f3e1e49d972bcf15f92f32458a56843c7 /app/workers
parent2924cef2f812b2ba74b8cf528f10e0f97c865942 (diff)
Fix trying to delete already deleted file when post-processing (#13406)
Fix #13403
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/post_process_media_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/post_process_media_worker.rb b/app/workers/post_process_media_worker.rb
index d3ebda194..148ae5e2b 100644
--- a/app/workers/post_process_media_worker.rb
+++ b/app/workers/post_process_media_worker.rb
@@ -25,7 +25,7 @@ class PostProcessMediaWorker
     media_attachment = MediaAttachment.find(media_attachment_id)
     media_attachment.processing = :in_progress
     media_attachment.save
-    media_attachment.file.reprocess_original!
+    media_attachment.file.reprocess!(:original)
     media_attachment.processing = :complete
     media_attachment.save
   rescue ActiveRecord::RecordNotFound