fix conflict in crawler

parent 02ef8dfd
Pipeline #910 canceled with stages
in 0 seconds
...@@ -27,6 +27,7 @@ class JobsController < ApplicationController ...@@ -27,6 +27,7 @@ class JobsController < ApplicationController
end end
def show def show
@job = Job.find(params[:id])
redirect_to jobs_path unless @job redirect_to jobs_path unless @job
end end
......
...@@ -58,7 +58,7 @@ class CSVImporter ...@@ -58,7 +58,7 @@ class CSVImporter
description: description_job, description: description_job,
level: level, level: level,
salary: salary, salary: salary,
company_id: company_id) company_id: company.id)
job = Job.find_or_create_by!(title: title_job, job = Job.find_or_create_by!(title: title_job,
description: description_job, description: description_job,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment