Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lead creation proinno #1208

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
class PagesController < ApplicationController
before_action :save_referer, except: [:handbook]
protect_from_forgery with: :null_session

def home
end
Expand Down Expand Up @@ -248,6 +247,7 @@ def create_proinnovate_2024_applicant
working: innovate_applicant_params[:working]
}
}

ConvertLoopJob.perform_later(data)
AdminMailer.new_lead("Proinnovate Becas 2024", data[:person][:first_name], data[:person][:last_name], data[:person][:email], data[:person][:country_code],
data[:person][:mobile], "").deliver_later
Expand All @@ -274,12 +274,12 @@ def create_proinnovate_2024_lead
program_name: params[:program_name],
},
metadata: {
linkedin: innovate_applicant_params[:url],
linkedin: params[:url],
ip: request.remote_ip,
goal: innovate_applicant_params[:goal],
experience: innovate_applicant_params[:experience],
studies: innovate_applicant_params[:studies],
working: innovate_applicant_params[:working]
goal: params[:goal],
experience: params[:experience],
studies: params[:studies],
working: params[:working]
}
}
ConvertLoopJob.perform_later(data)
Expand Down
Loading