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

class AfterUnallowDomainService < BaseService
  def call(domain)
    Account.where(domain: domain).find_each do |account|
      DeleteAccountService.new.call(account, reserve_username: false)
    end
  end
end