gab-social/app/workers/delete_chat_message_worker.rb
mgabdev 7ec426e3d8 Progress on DMs
Progress on DMs
2020-12-19 01:33:33 -05:00

13 lines
280 B
Ruby

# frozen_string_literal: true
class DeleteChatMessageWorker
include Sidekiq::Worker
sidekiq_options unique: :until_executed
def perform(chat_message_id)
return if chat_message_id.nil?
DeleteChatMessageService.new.call(ChatMessage.find(chat_message_id))
end
end