diff --git a/server/api/projects/[id]/overview.ts b/server/api/projects/[id]/overview.ts index ba83927..2704115 100644 --- a/server/api/projects/[id]/overview.ts +++ b/server/api/projects/[id]/overview.ts @@ -15,10 +15,6 @@ export default eventHandler(async (event) => { const { getProjectId } = useValidation(event); const projectId = await getProjectId(); - let selectColumns: any = { - count: sql`count(1)`, - }; - let filterBy: any = and( eq(tables.feedbacks.userId, userId), eq(tables.feedbacks.projectId, projectId) @@ -55,7 +51,7 @@ export default eventHandler(async (event) => { }, filterBy, desc(tables.feedbacks.updatedAt), - 1, + 0, 20 );