Skip to content

Commit

Permalink
be-318: Add vote count
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanIlhan committed Dec 25, 2023
1 parent 34cc185 commit baa7036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/backend/src/ranking/ranking.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class RankingService {

let base = vote_count/vote_distribution.find(entity => entity.optionId === optionID).count;

base += base * (3 * commentCount + likeCount) / 10
base += base * (3 * commentCount + likeCount + vote_count) / 10

return Math.ceil(base)

Expand Down

0 comments on commit baa7036

Please sign in to comment.