~cytrogen/masto-fe

ref: 39110d1d0af5e3d9cf452ae47496a52797249fd0 masto-fe/app/workers/admin/unsuspension_worker.rb -rw-r--r-- 269 bytes
39110d1d — Eugen Rochko Fix CAPTCHA page not following design pattern of sign-up flow (#25395) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class Admin::UnsuspensionWorker
  include Sidekiq::Worker

  sidekiq_options queue: 'pull'

  def perform(account_id)
    UnsuspendAccountService.new.call(Account.find(account_id))
  rescue ActiveRecord::RecordNotFound
    true
  end
end