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

class DefederateDomainService < BaseService
  def call(domains)
    return if domains.blank?

    Account.local.find_each do |account|
      DefederateAccountService.new.call(account, domains)
    end
  end
end