diff --git a/api/index.ts b/api/index.ts index 79b17a0..022cd31 100644 --- a/api/index.ts +++ b/api/index.ts @@ -27,7 +27,9 @@ export const search = async ({ .then((response) => mapMoviesSeriesResponseToShows(response, type)); }; -const generatePage = createUniqueRandomGenerator(500); +const TOTAL_PAGES = 500; + +const generatePage = createUniqueRandomGenerator(TOTAL_PAGES); export const randomMovies = async (): Promise> => { return http