Widen remaining type unions: StatusBadge, IssueModal, PersonDetails, ExternalLink, discover
This commit is contained in:
@@ -703,7 +703,7 @@ discoverRoutes.get('/trending', async (req, res, next) => {
|
||||
const tmdb = createTmdbWithRegionLanguage(req.user);
|
||||
|
||||
try {
|
||||
const mediaType = (req.query.mediaType as 'all' | 'movie' | 'tv') ?? 'all';
|
||||
const mediaType = (req.query.mediaType as 'all' | 'movie' | 'tv' | 'music' | 'book') ?? 'all';
|
||||
const timeWindow =
|
||||
(req.query.timeWindow as 'day' | 'week') === 'week' ? 'week' : 'day';
|
||||
const language = (req.query.language as string) ?? req.locale;
|
||||
|
||||
Reference in New Issue
Block a user