This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2020-07-15 21:08:19 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AfterUnallowDomainService < BaseService
|
|
|
|
def call(domain)
|
|
|
|
Account.where(domain: domain).find_each do |account|
|
2020-09-15 14:37:58 +02:00
|
|
|
DeleteAccountService.new.call(account, reserve_username: false)
|
2020-07-15 21:08:19 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|