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])
|
JobSkill.method("#{locale}_search").call(search_params[:query])
|
||||||
.where(conditions)
|
.where(conditions)
|
||||||
.where(sub: true)
|
.where(sub: true)
|
||||||
|
.where.not(job: job.id)
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
JobSkill.all
|
JobSkill.all
|
||||||
|
|
@ -156,6 +157,7 @@ module Api
|
||||||
JobSkill.all
|
JobSkill.all
|
||||||
.where(conditions)
|
.where(conditions)
|
||||||
.where(sub: true)
|
.where(sub: true)
|
||||||
|
.where.not(job: job.id)
|
||||||
)
|
)
|
||||||
.or(
|
.or(
|
||||||
JobSkill.all
|
JobSkill.all
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue