Skip to content

Commit

Permalink
Switch back to where in rails_admin_search
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Oct 26, 2024
1 parent 53a2a1a commit 59cf5ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/anime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def self.fuzzy_find(title)
end

def self.rails_admin_search(keyword)
find(TypesenseAnimeIndex.search(
where(id: TypesenseAnimeIndex.search(
query: keyword,
query_by: {
'canonical_title' => 100,
Expand Down
2 changes: 1 addition & 1 deletion app/models/manga.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def self.unit_class
end

def self.rails_admin_search(keyword)
find(TypesenseMangaIndex.search(
where(id: TypesenseMangaIndex.search(
query: keyword,
query_by: {
'canonical_title' => 100,
Expand Down

0 comments on commit 59cf5ac

Please sign in to comment.