Skip to content

Commit

Permalink
fix: Change rom_id type to int in search endpoint
Browse files Browse the repository at this point in the history
Fixes PostgreSQL query error reported in:
#667 (comment)
  • Loading branch information
adamantike committed Jan 5, 2025
1 parent 421d9ab commit e0ed23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/endpoints/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
@protected_route(router.get, "/search/roms", [Scope.ROMS_READ])
async def search_rom(
request: Request,
rom_id: str,
rom_id: int,
search_term: str | None = None,
search_by: str = "name",
) -> list[SearchRomSchema]:
"""Search for rom in metadata providers
Args:
request (Request): FastAPI request
rom_id (str): Rom ID
rom_id (int): Rom ID
source (str): Source of the rom
search_term (str, optional): Search term. Defaults to None.
search_by (str, optional): Search by name or ID. Defaults to "name".
Expand Down

0 comments on commit e0ed23a

Please sign in to comment.