diff --git a/src/routes/getPages.ts b/src/routes/getPages.ts index 0729417..8b4d742 100644 --- a/src/routes/getPages.ts +++ b/src/routes/getPages.ts @@ -36,6 +36,6 @@ export const getPages = async ({ request, reply }) => { result: response?.urls?.map(obj => ({ ...obj, })), - total: response?.urls_aggregate?.count, + total: response?.urls[0]?.urls_aggregate?.count, }; } \ No newline at end of file