Skip to content

Commit

Permalink
Merge pull request #66 from MozillaSocial/followUp
Browse files Browse the repository at this point in the history
Delete attachment async when the admin status API is triggered - comm…
  • Loading branch information
bakulf committed Feb 23, 2024
2 parents 8d07a54 + 7794e96 commit 50bc576
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 50bc576

Please sign in to comment.