Removed current job's subskills from search

This commit is contained in:
Justin Edmund 2022-12-22 23:27:46 -08:00
parent 874c20245d
commit a837210029

View file

@ -147,6 +147,7 @@ module Api
JobSkill.method("#{locale}_search").call(search_params[:query])
.where(conditions)
.where(sub: true)
.where.not(job: job.id)
)
else
JobSkill.all
@ -156,6 +157,7 @@ module Api
JobSkill.all
.where(conditions)
.where(sub: true)
.where.not(job: job.id)
)
.or(
JobSkill.all