mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 09:53:25 +00:00
chore: cleanup
This commit is contained in:
@@ -56,7 +56,7 @@ async function fetchSearchResults(query: string): Promise<ItemData[]> {
|
||||
title: result.title,
|
||||
posterUrl: getMediaPoster(result.poster_path),
|
||||
year: new Date(result.release_date).getFullYear(),
|
||||
type: result.media_type as "movie",
|
||||
type: result.media_type,
|
||||
};
|
||||
case "tv":
|
||||
return {
|
||||
@@ -64,7 +64,7 @@ async function fetchSearchResults(query: string): Promise<ItemData[]> {
|
||||
title: result.name,
|
||||
posterUrl: getMediaPoster(result.poster_path),
|
||||
year: new Date(result.first_air_date).getFullYear(),
|
||||
type: result.media_type as "tv",
|
||||
type: result.media_type,
|
||||
};
|
||||
default:
|
||||
return undefined;
|
||||
|
Reference in New Issue
Block a user