chore: some better indent
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}`
|
||||
: ''
|
||||
}`
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user