2019-11-07 20:43:53 +00:00
|
|
|
class TicketCreateJob < ApplicationJob
|
|
|
|
queue_as :default
|
|
|
|
|
2019-11-07 20:51:09 +00:00
|
|
|
def perform(ticket_ids, charge, user=nil)
|
|
|
|
TicketMailer.followup(ticket_ids, charge_id).deliver_later
|
|
|
|
TicketMailer.receipt_admin(ticket_ids, user.id).deliver_later
|
2019-11-07 20:43:53 +00:00
|
|
|
end
|
|
|
|
end
|