2020-07-15 19:08:19 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AfterUnallowDomainService < BaseService
|
|
|
|
def call(domain)
|
|
|
|
Account.where(domain: domain).find_each do |account|
|
2020-09-15 12:37:58 +00:00
|
|
|
DeleteAccountService.new.call(account, reserve_username: false)
|
2020-07-15 19:08:19 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|