From dfbfada0d0952624cb99a94ba3fb767b7ec016b9 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 19 Jun 2023 00:21:53 -0700 Subject: [PATCH] Fix display of base skills (#100) Base skills were not displaying due to a missing case in our search code. This is now fixed. --- app/controllers/api/v1/search_controller.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/controllers/api/v1/search_controller.rb b/app/controllers/api/v1/search_controller.rb index 0d94ae0..b60c3d0 100644 --- a/app/controllers/api/v1/search_controller.rb +++ b/app/controllers/api/v1/search_controller.rb @@ -158,6 +158,13 @@ module Api .where(job: { base_job: job.base_job.id }, emp: true) .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 JobSkill.all .joins(:job)