Removed current job's subskills from search
This commit is contained in:
parent
874c20245d
commit
a837210029
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue