Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
14
research/chatwoot/app/jobs/contacts/bulk_action_job.rb
Normal file
14
research/chatwoot/app/jobs/contacts/bulk_action_job.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class Contacts::BulkActionJob < ApplicationJob
|
||||
queue_as :medium
|
||||
|
||||
def perform(account_id, user_id, params)
|
||||
account = Account.find(account_id)
|
||||
user = User.find(user_id)
|
||||
|
||||
Contacts::BulkActionService.new(
|
||||
account: account,
|
||||
user: user,
|
||||
params: params
|
||||
).perform
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user