diff --git a/src/backend/metadata/search.ts b/src/backend/metadata/search.ts index 3d73705e..fff64112 100644 --- a/src/backend/metadata/search.ts +++ b/src/backend/metadata/search.ts @@ -24,10 +24,10 @@ export async function searchForMedia(query: MWQuery): Promise { return formatTMDBMetaToMediaItem(formattedResult); }); - const movieWithposters = results.filter((movie) => movie.poster); - const movieWithoutposters = results.filter((movie) => !movie.poster); + const movieWithPosters = results.filter((movie) => movie.poster); + const movieWithoutPosters = results.filter((movie) => !movie.poster); - const sortedresult = movieWithposters.concat(movieWithoutposters); + const sortedresult = movieWithPosters.concat(movieWithoutPosters); // cache results for 1 hour cache.set(query, sortedresult, 3600);