mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
ban worker
This commit is contained in:
parent
e554666fc5
commit
67ddf7d419
1 changed files with 8 additions and 0 deletions
8
workers/ban_worker.rb
Normal file
8
workers/ban_worker.rb
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
class BanWorker
|
||||||
|
include Sidekiq::Worker
|
||||||
|
sidekiq_options queue: :ban, retry: 10, backtrace: true
|
||||||
|
|
||||||
|
def perform(site_id)
|
||||||
|
Site[site_id].ban!
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue