mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-02-13 23:56:22 +08:00
[resumes][feat] update top upvoted comment count
This commit is contained in:
@@ -213,7 +213,8 @@ export const resumesRouter = createRouter()
|
||||
let topUpvotedCommentCount = 0;
|
||||
|
||||
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
|
||||
const commentUpvotePairs = [];
|
||||
|
||||
Reference in New Issue
Block a user