houdini/app/jobs/import_creation_job.rb

14 lines
368 B
Ruby
Raw Normal View History

2019-11-07 21:16:21 +00:00
class ImportCreationJob < ApplicationJob
queue_as :default
def perform(import_params, current_user)
InsertImport.from_csv_safe(
nonprofit_id: import_params[:nonprofit_id],
user_id: current_user.id,
user_email: current_user.email,
file_uri: import_params[:file_uri],
header_matches: import_params[:header_matches]
)
end
end