about summary refs log tree commit diff
path: root/app/workers/remove_media_attachments_worker.rb
blob: d5bac6ab8de51535023e81588b0b9c2267754e9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class RemoveMediaAttachmentsWorker
  include Sidekiq::Worker

  def perform(attachment_ids)
    RemoveMediaAttachmentsService.new.call(attachment_ids)
  rescue ActiveRecord::RecordNotFound
    true
  end
end