Skip to content

Commit

Permalink
fix - open and closed feedback length
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshara Hegde committed Aug 9, 2023
1 parent 2671368 commit 583d17a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/api/projects/[id]/overview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ export default eventHandler(async (event) => {
const { getProjectId } = useValidation(event);
const projectId = await getProjectId();

let selectColumns: any = {
count: sql<number>`count(1)`,
};

let filterBy: any = and(
eq(tables.feedbacks.userId, userId),
eq(tables.feedbacks.projectId, projectId)
Expand Down Expand Up @@ -55,7 +51,7 @@ export default eventHandler(async (event) => {
},
filterBy,
desc(tables.feedbacks.updatedAt),
1,
0,
20
);

Expand Down

0 comments on commit 583d17a

Please sign in to comment.