mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-10-16 01:05:42 -04:00
fix(discover): pass explicit browse fields from search
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+7
-1
@@ -282,7 +282,13 @@ export const search = os.discover.search.use(authed).handler(async ({ input }) =
|
||||
);
|
||||
const titleMap = ensureBrowseTitlesExist(
|
||||
titleResults.map((r) => ({
|
||||
...r,
|
||||
tmdbId: r.tmdbId,
|
||||
type: r.type,
|
||||
title: r.title,
|
||||
overview: r.overview,
|
||||
posterPath: r.posterPath,
|
||||
popularity: r.popularity,
|
||||
voteAverage: r.voteAverage,
|
||||
releaseDate: r.type === "movie" ? r.releaseDate : null,
|
||||
firstAirDate: r.type === "tv" ? r.releaseDate : null,
|
||||
})),
|
||||
|
||||
Reference in new issue
Block a user