From fa1707cda41ba140f0e3ea0775654d2024942bd3 Mon Sep 17 00:00:00 2001 From: Pierre Leroux Date: Fri, 5 Aug 2022 16:12:50 +0200 Subject: [PATCH] Update constants.ts --- webhooks/functions/src/constants.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webhooks/functions/src/constants.ts b/webhooks/functions/src/constants.ts index 98cfc69..e766272 100644 --- a/webhooks/functions/src/constants.ts +++ b/webhooks/functions/src/constants.ts @@ -3,17 +3,17 @@ export let NAME = "EOLE"; export const API_BASE_URL = "https://eole-recette.avh.asso.fr/api/v1/my_list"; export const EDRLAB_FUNCTION_URL = ""; -export const BOOKSHELF_URL = 'https://eole-recette.avh.asso.fr/api/v1/my_list'; -export const SEARCH_URL = 'https://eole-recette.avh.asso.fr/api/v1/search?search={query}&support=1'; +export const BOOKSHELF_URL = 'https://eole-recette.avh.asso.fr/api/v1/my_list?per_page=5'; +export const SEARCH_URL = 'https://eole-recette.avh.asso.fr/api/v1/search?search={query}&support=1&per_page=5'; export const SEARCH_URL_FN = (value: string) => SEARCH_URL.replace("{query}", value); -export const THEMATIC_LIST_URL = 'https://eole-recette.avh.asso.fr/api/v1/preselections/thematique'; -export const GENRE_LIST_URL = 'https://eole-recette.avh.asso.fr/api/v1/preselections/genre'; +export const THEMATIC_LIST_URL = 'https://eole-recette.avh.asso.fr/api/v1/preselections/thematique?per_page=5'; +export const GENRE_LIST_URL = 'https://eole-recette.avh.asso.fr/api/v1/preselections/genre?per_page=5'; export const DEFAULT_LANGUAGE: TDefaultLanguage = 'fr'; export type TDefaultLanguage = Extract; export const PADDING_GROUP = 5; -export const PADDING_PUB = 3; +export const PADDING_PUB = 5; export const LAST_SEEN_THRESHOLD = 72; export const PROJECT_ID = 'valentin-4';