Skip to content

Commit

Permalink
fix(next/api): exclude user like rating
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Nov 28, 2023
1 parent b6f0cbf commit a544c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/api/src/router/ticket-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ router.get('/', async (ctx) => {

const created = data?.created || 0;
// 用户未评价记为系统默认好评
evaluationStats.likeCount += created - evaluationStats.dislikeCount;
evaluationStats.likeCount = created - evaluationStats.dislikeCount;

ctx.body = {
...data,
Expand Down

0 comments on commit a544c50

Please sign in to comment.