blob: b51c6a266c9ae20fbe018720cd479c646dc08fc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class ProjectDestroyWorker
include Sidekiq::Worker
sidekiq_options queue: :default
def perform(project_id, user_id, params)
begin
project = Project.unscoped.find(project_id)
rescue ActiveRecord::RecordNotFound
return
end
user = User.find(user_id)
::Projects::DestroyService.new(project, user, params).execute
end
end
|