diff --git a/src/pages/api/psychologists/index.ts b/src/pages/api/psychologists/index.ts index e8b5a335..2b796145 100644 --- a/src/pages/api/psychologists/index.ts +++ b/src/pages/api/psychologists/index.ts @@ -4,7 +4,7 @@ import { handleApiError } from "../../../services/api"; import { getAll } from "../../../services/psychologists"; import { API_ENDPOINT_FILTER } from "../../../types/enums/filters"; -const FILTERS = Object.values(API_ENDPOINT_FILTER); +const FILTERS = Object.values(API_ENDPOINT_FILTER) as string[]; function hasParamsNotAllowed(filters) { return Object.keys(filters).filter((q) => !FILTERS.includes(q)).length; diff --git a/src/services/psychologists.ts b/src/services/psychologists.ts index 9b677bc6..fbd67a77 100644 --- a/src/services/psychologists.ts +++ b/src/services/psychologists.ts @@ -49,7 +49,7 @@ export const countAll = async () => where: { archived: false, state: "accepte" }, }); -const DEFAULT_PAGE_SIZE = 75; +const DEFAULT_PAGE_SIZE = 100; export const getAll = async (filters: { [key in FILTER]?: string | string[]; }): Promise => {