From a82e1512c24bbe1469862de7da66fd6166c5da6f Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 6 Jul 2023 18:07:16 -0700 Subject: [PATCH] Search is broken in Japanese! --- app/controllers/api/v1/search_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/v1/search_controller.rb b/app/controllers/api/v1/search_controller.rb index 842863b..d18b69d 100644 --- a/app/controllers/api/v1/search_controller.rb +++ b/app/controllers/api/v1/search_controller.rb @@ -67,7 +67,7 @@ module Api characters = if search_params[:query].present? && search_params[:query].length >= 2 if locale == 'ja' - Character.jp_search(search_params[:query]).where(conditions) + Character.ja_search(search_params[:query]).where(conditions) else Character.en_search(search_params[:query]).where(conditions) end @@ -105,7 +105,7 @@ module Api weapons = if search_params[:query].present? && search_params[:query].length >= 2 if locale == 'ja' - Weapon.jp_search(search_params[:query]).where(conditions) + Weapon.ja_search(search_params[:query]).where(conditions) else Weapon.en_search(search_params[:query]).where(conditions) end @@ -138,7 +138,7 @@ module Api summons = if search_params[:query].present? && search_params[:query].length >= 2 if locale == 'ja' - Summon.jp_search(search_params[:query]).where(conditions) + Summon.ja_search(search_params[:query]).where(conditions) else Summon.en_search(search_params[:query]).where(conditions) end