Skip to content

Commit

Permalink
Fixed incorrect response object path in getPages
Browse files Browse the repository at this point in the history
  • Loading branch information
azdak committed Oct 18, 2024
1 parent a737827 commit 1ae4d74
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/routes/getPages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ export const getPages = async ({ request, reply }) => {

return {
status: 'success',
result: response?.properties?.nodes?.map(obj => ({
...obj,
})),
total: response?.properties?.totalCount?.count,
result: response,
total: response?.count,
};
}

0 comments on commit 1ae4d74

Please sign in to comment.