Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
fix(annuaire): update max number of psy returns
Browse files Browse the repository at this point in the history
  • Loading branch information
carolineBda committed Sep 12, 2023
1 parent cc3b7b8 commit 8fb692a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/api/psychologists/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/services/psychologists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Psychologist[]> => {
Expand Down

0 comments on commit 8fb692a

Please sign in to comment.