Add Active Job definitions for executing Mailbluster requests
This commit is contained in:
parent
9ae19c8db6
commit
671d010e68
3 changed files with 26 additions and 0 deletions
10
app/jobs/mailbluster_edit_lead_job.rb
Normal file
10
app/jobs/mailbluster_edit_lead_job.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class MailblusterEditLeadJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(user, add_tags: [], remove_tags: [], old_email: nil)
|
||||
ApplicationController.helpers.edit_lead(user,
|
||||
add_tags: add_tags, remove_tags: remove_tags, old_email: old_email)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue