houdini/app/jobs/campaign_create_job.rb
2019-11-08 16:13:03 -06:00

13 lines
330 B
Ruby

class CampaignCreateJob < ApplicationJob
queue_as :default
def perform(campaign)
if campaign.child_campaign?
CampaignCreationFederatedEmailJob.perform_later(campaign)
else
CampaignCreationEmailFollowupJob.perform_later(campaign)
end
SupporterFundraiserCreateJob.perform_later(campaign)
end
end