[resumes][feat] update top upvoted comment count

pull/405/head
Keane Chan 2 years ago
parent 22d5f54a47
commit 18d2a10708
No known key found for this signature in database
GPG Key ID: 32718398E1E9F87C

@ -213,7 +213,8 @@ export const resumesRouter = createRouter()
let topUpvotedCommentCount = 0; let topUpvotedCommentCount = 0;
for (const resume of resumes) { for (const resume of resumes) {
let highestVoteCount = 1; // Set minimum upvote count >= 5 to qualify
let highestVoteCount = 5;
// Get Map of {userId, voteCount} for each comment // Get Map of {userId, voteCount} for each comment
const commentUpvotePairs = []; const commentUpvotePairs = [];

Loading…
Cancel
Save