fedibird-fe/app/workers/un_emoji_reaction_worker.rb
2022-05-11 00:48:03 +09:00

11 lines
266 B
Ruby

# frozen_string_literal: true
class UnEmojiReactionWorker
include Sidekiq::Worker
def perform(account_id, status_id)
UnEmojiReactionService.new.call(Account.find(account_id), Status.find(status_id))
rescue ActiveRecord::RecordNotFound
true
end
end