From 5bf7c82b54a69db7fd28dac12210cb757a114158 Mon Sep 17 00:00:00 2001 From: Ashish Date: Tue, 2 Jan 2024 15:43:02 +0530 Subject: [PATCH] Update src/backend/metadata/search.ts Co-authored-by: William Oldham --- src/backend/metadata/search.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);