From 37ccfbb0dade113c64bcaf1c46e466e9831ca059 Mon Sep 17 00:00:00 2001 From: ner Date: Sat, 5 Oct 2024 17:25:28 +0300 Subject: [PATCH] fix: constant name --- api/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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