diff --git a/pages/api/getEntries.ts b/pages/api/getEntries.ts index 56d7d4d..4b81c3c 100644 --- a/pages/api/getEntries.ts +++ b/pages/api/getEntries.ts @@ -54,7 +54,6 @@ const handler = async function ( }, collaboration_partners: true, tool_images: true, - votes: true, _count: { select: { votes: true @@ -63,6 +62,7 @@ const handler = async function ( }, skip: ((parseInt(params.page?.toString() || "1") - 1) * 10) || 0, take: 10, + distinct: ["id"], where: { isVerified: true },