mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 16:58:06 +01:00
11 lines
271 B
Ruby
11 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DistributionWorker < ApplicationWorker
|
|
include Sidekiq::Worker
|
|
|
|
def perform(status_id)
|
|
FanOutOnWriteService.new.call(Status.find(status_id))
|
|
rescue ActiveRecord::RecordNotFound
|
|
info("Couldn't find the status")
|
|
end
|
|
end
|