chore: some better indent

This commit is contained in:
0xsysr3ll
2025-03-22 15:29:57 +01:00
parent a2e3cf08bb
commit f2277feb68
2 changed files with 10 additions and 7 deletions

View File

@@ -155,11 +155,13 @@ requestRoutes.get<Record<string, unknown>, RequestResultsResponse>(
case 'all':
break;
case 'movie':
query = query.andWhere('request.type = :type', { type: MediaType.MOVIE });
break;
query = query.andWhere('request.type = :type', {
type: MediaType.MOVIE,
});
case 'tv':
query = query.andWhere('request.type = :type', { type: MediaType.TV });
break;
query = query.andWhere('request.type = :type', {
type: MediaType.TV,
});
}
const [requests, requestCount] = await query

View File

@@ -73,13 +73,14 @@ const RequestList = () => {
} = useSWR<RequestResultsResponse>(
`/api/v1/request?take=${currentPageSize}&skip=${
pageIndex * currentPageSize
}&filter=${currentFilter}&mediaType=${currentMediaType
}&filter=${currentFilter}&mediaType=${
currentMediaType
}&sort=${currentSort}&sortDirection=${currentSortDirection}${
router.pathname.startsWith('/profile')
? `&requestedBy=${currentUser?.id}`
: router.query.userId
? `&requestedBy=${router.query.userId}`
: ''
? `&requestedBy=${router.query.userId}`
: ''
}`
);