fix: make search work
This commit is contained in:
@@ -19,9 +19,9 @@ const GET = async (
|
||||
throw new BadRequestError();
|
||||
}
|
||||
|
||||
const type = u.searchParams.get("type") || "movie";
|
||||
const type = u.searchParams.get("type") || "movies";
|
||||
|
||||
const res = type === "movie"
|
||||
const res = type === "movies"
|
||||
? await searchMovie(query)
|
||||
: await searchTVShow(query);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user