Skip to content

Commit

Permalink
Delete attachment async when the admin status API is triggered - comm…
Browse files Browse the repository at this point in the history
…ent applied
  • Loading branch information
bakulf committed Feb 23, 2024
1 parent 63a5f52 commit 7794e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/admin/status_batch_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def handle_delete!

# Immediately remove public copy of media instead of waiting for
# the vacuum_orphaned_records job to take care of it later on
Admin::MediaAttachmentDeletionWorker.perform_inline(status.media_attachments)
Admin::MediaAttachmentDeletionWorker.perform_async(status.media_attachments.map(&:id))
end

if with_report?
Expand Down

0 comments on commit 7794e96

Please sign in to comment.