Show EMP skills for Row 5 classes
Row 4 EMP skills were not showing up, so you couldn't set Rage IV on Viking, for example
This commit is contained in:
parent
e2c1639d8f
commit
158786b5a8
1 changed files with 19 additions and 2 deletions
|
|
@ -140,17 +140,27 @@ module Api
|
|||
|
||||
# Perform the query
|
||||
skills = if search_params[:query].present? && search_params[:query].length >= 2
|
||||
JobSkill.method("#{locale}_search").call(search_params[:query])
|
||||
JobSkill.joins(:job)
|
||||
.method("#{locale}_search").call(search_params[:query])
|
||||
.where(conditions)
|
||||
.where(job: job.id, main: false)
|
||||
.or(
|
||||
JobSkill.method("#{locale}_search").call(search_params[:query])
|
||||
JobSkill.joins(:job)
|
||||
.method("#{locale}_search").call(search_params[:query])
|
||||
.where(conditions)
|
||||
.where(sub: 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 }, emp: true)
|
||||
.where.not(job: job.id)
|
||||
)
|
||||
else
|
||||
JobSkill.all
|
||||
.joins(:job)
|
||||
.where(conditions)
|
||||
.where(job: job.id, main: false)
|
||||
.or(
|
||||
|
|
@ -165,6 +175,13 @@ module Api
|
|||
.where(job: job.base_job.id, base: true)
|
||||
.where.not(job: job.id)
|
||||
)
|
||||
.or(
|
||||
JobSkill.all
|
||||
.where(conditions)
|
||||
.joins(:job)
|
||||
.where(job: { base_job: job.base_job.id }, emp: true)
|
||||
.where.not(job: job.id)
|
||||
)
|
||||
end
|
||||
|
||||
count = skills.length
|
||||
|
|
|
|||
Loading…
Reference in a new issue