diff options
Diffstat (limited to 'app/workers/reset_account_worker.rb')
-rw-r--r-- | app/workers/reset_account_worker.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/workers/reset_account_worker.rb b/app/workers/reset_account_worker.rb deleted file mode 100644 index f63d8682a..000000000 --- a/app/workers/reset_account_worker.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -class ResetAccountWorker - include Sidekiq::Worker - - def perform(account_id) - account = Account.find(account_id) - return if account.local? - - account_uri = account.uri - SuspendAccountService.new.call(account) - ResolveAccountService.new.call(account_uri) - rescue ActiveRecord::RecordNotFound - true - end -end |