diff --git a/server/routers/user/query.ts b/server/routers/user/query.ts index 073ef7a04..763758e3d 100644 --- a/server/routers/user/query.ts +++ b/server/routers/user/query.ts @@ -535,11 +535,12 @@ export const userQueryRouter = router({ return dateA > dateB ? -1 : 1 }) - .slice(limit * (page - 1), limit * page) + + const slicedData = pageData.slice(limit * (page - 1), limit * page) return { data: { - transactions: pageData.map(({ type, attributes }) => { + transactions: slicedData.map(({ type, attributes }) => { return { type, awardPoints: attributes.awardPoints,