From a544c5010fa6aed2953868b2ab11ae50a7eadf21 Mon Sep 17 00:00:00 2001 From: sdjdd Date: Tue, 28 Nov 2023 11:35:26 +0800 Subject: [PATCH] fix(next/api): exclude user like rating --- next/api/src/router/ticket-stats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next/api/src/router/ticket-stats.ts b/next/api/src/router/ticket-stats.ts index 04005d31d..6b1612fe8 100644 --- a/next/api/src/router/ticket-stats.ts +++ b/next/api/src/router/ticket-stats.ts @@ -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,