Fix display of base skills (#100)

Base skills were not displaying due to a missing case in our search code. This is now fixed.
This commit is contained in:
Justin Edmund 2023-06-19 00:21:53 -07:00 committed by GitHub
parent 4567766530
commit dfbfada0d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,13 @@ module Api
.where(job: { base_job: job.base_job.id }, emp: true) .where(job: { base_job: job.base_job.id }, emp: true)
.where.not(job: job.id) .where.not(job: job.id)
) )
.or(
JobSkill.joins(:job)
.method("#{locale}_search").call(search_params[:query])
.where(conditions)
.where(job: { base_job: job.base_job.id }, base: true)
.where.not(job: job.id)
)
else else
JobSkill.all JobSkill.all
.joins(:job) .joins(:job)