From 8c1d51fb4f1ffa993b7565aeb92578828e1bd36f Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 22 Dec 2022 23:26:23 -0800 Subject: [PATCH] Updated getting skills assignable to a job This endpoint isn't used though --- app/controllers/api/v1/job_skills_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/api/v1/job_skills_controller.rb b/app/controllers/api/v1/job_skills_controller.rb index bedc216..8b466a1 100644 --- a/app/controllers/api/v1/job_skills_controller.rb +++ b/app/controllers/api/v1/job_skills_controller.rb @@ -8,8 +8,7 @@ module Api end def job - @skills = JobSkill.where(job: Job.find(params[:id])) - .or(JobSkill.where(sub: true)) + @skills = JobSkill.where('job_id != ? AND emp = ?', params[:id], true) render json: JobSkillBlueprint.render(@skills) end end