mirror of
https://github.com/ae-utbm/sith.git
synced 2025-03-28 16:17:11 +00:00
increase max pagination size from 199 to 200
This commit is contained in:
parent
d16237d015
commit
99e1318071
@ -30,7 +30,7 @@ export const paginated = async <T>(
|
|||||||
endpoint: PaginatedEndpoint<T>,
|
endpoint: PaginatedEndpoint<T>,
|
||||||
options?: PaginatedRequest,
|
options?: PaginatedRequest,
|
||||||
): Promise<T[]> => {
|
): Promise<T[]> => {
|
||||||
const maxPerPage = 199;
|
const maxPerPage = 200;
|
||||||
const queryParams = options ?? ({} as PaginatedRequest);
|
const queryParams = options ?? ({} as PaginatedRequest);
|
||||||
queryParams.query = queryParams.query ?? {};
|
queryParams.query = queryParams.query ?? {};
|
||||||
queryParams.query.page_size = maxPerPage;
|
queryParams.query.page_size = maxPerPage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user