Search is broken in Japanese!
This commit is contained in:
parent
645fc07327
commit
a82e1512c2
1 changed files with 3 additions and 3 deletions
|
|
@ -67,7 +67,7 @@ module Api
|
||||||
|
|
||||||
characters = if search_params[:query].present? && search_params[:query].length >= 2
|
characters = if search_params[:query].present? && search_params[:query].length >= 2
|
||||||
if locale == 'ja'
|
if locale == 'ja'
|
||||||
Character.jp_search(search_params[:query]).where(conditions)
|
Character.ja_search(search_params[:query]).where(conditions)
|
||||||
else
|
else
|
||||||
Character.en_search(search_params[:query]).where(conditions)
|
Character.en_search(search_params[:query]).where(conditions)
|
||||||
end
|
end
|
||||||
|
|
@ -105,7 +105,7 @@ module Api
|
||||||
|
|
||||||
weapons = if search_params[:query].present? && search_params[:query].length >= 2
|
weapons = if search_params[:query].present? && search_params[:query].length >= 2
|
||||||
if locale == 'ja'
|
if locale == 'ja'
|
||||||
Weapon.jp_search(search_params[:query]).where(conditions)
|
Weapon.ja_search(search_params[:query]).where(conditions)
|
||||||
else
|
else
|
||||||
Weapon.en_search(search_params[:query]).where(conditions)
|
Weapon.en_search(search_params[:query]).where(conditions)
|
||||||
end
|
end
|
||||||
|
|
@ -138,7 +138,7 @@ module Api
|
||||||
|
|
||||||
summons = if search_params[:query].present? && search_params[:query].length >= 2
|
summons = if search_params[:query].present? && search_params[:query].length >= 2
|
||||||
if locale == 'ja'
|
if locale == 'ja'
|
||||||
Summon.jp_search(search_params[:query]).where(conditions)
|
Summon.ja_search(search_params[:query]).where(conditions)
|
||||||
else
|
else
|
||||||
Summon.en_search(search_params[:query]).where(conditions)
|
Summon.en_search(search_params[:query]).where(conditions)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue