module CanvasSync module Jobs # ActiveJob class that starts a Canvas provisioning report class SyncProvisioningReportJob < ReportStarter def perform(options) params = { include_deleted: true, } options[:models].each do |model| # group_membership is the only model param that is singular :( model = 'group_membership' if model == 'group_memberships' params[model] = true end super( "proservices_provisioning_csv", merge_report_params(options, params, {}), CanvasSync::Processors::ProvisioningReportProcessor.to_s, options, ) end end end end