blob: 150ed8ff0f76ad4fb166ca79e7b749c3923bc725 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
class AccountDefederationWorker
include Sidekiq::Worker
def perform(account_id, domains)
DefederateAccountService.new.call(Account.find(account_id), domains)
rescue ActiveRecord::RecordNotFound
true
end
end
|