= [
id: 'Sage',
isValid: (payload: BadgePayload) =>
payload.topUpvotedCommentCount >= TIER_THREE,
- title: 'I am wisdom.',
+ title: 'I am wisdom',
},
{
description: `${TIER_TWO} top upvoted comment`,
diff --git a/apps/portal/src/server/router/resumes/resumes-resume-router.ts b/apps/portal/src/server/router/resumes/resumes-resume-router.ts
index f5797c9c..9e46e0e6 100644
--- a/apps/portal/src/server/router/resumes/resumes-resume-router.ts
+++ b/apps/portal/src/server/router/resumes/resumes-resume-router.ts
@@ -184,3 +184,13 @@ export const resumesRouter = createRouter()
return highestUpvotedResume?._count?.stars ?? 0;
},
});
+// .query('findUserTopUpvotedCommentCount', {
+// input: z.object({
+// userId: z.string(),
+// }),
+// async resolve({ ctx, input }) {
+// const highestUpvotedResume = await ctx.prisma.resumesComment.groupBy({
+// by: ['resumeId'],
+// })
+// },
+// });