From d2741160c24c1a7b1e8fb9d3aa0ba2ab96f56eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B4=EB=9D=BC=EC=BF=A0=EB=AA=A8?= Date: Sun, 21 Jul 2024 21:41:16 +0900 Subject: [PATCH] rollback(stats): pv is not working --- packages/backend/src/server/api/endpoints/stats.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/stats.ts b/packages/backend/src/server/api/endpoints/stats.ts index d73d5517e..1e6983177 100644 --- a/packages/backend/src/server/api/endpoints/stats.ts +++ b/packages/backend/src/server/api/endpoints/stats.ts @@ -71,12 +71,12 @@ export default class extends Endpoint { // eslint- ) { super(meta, paramDef, async () => { const notesChart = await this.notesChart.getChart('hour', 1, null); + const notesCount = notesChart.local.total[0] + notesChart.remote.total[0]; const originalNotesCount = notesChart.local.total[0]; - const notesCount = originalNotesCount + notesChart.remote.total[0]; const usersChart = await this.usersChart.getChart('hour', 1, null); + const usersCount = usersChart.local.total[0] + usersChart.remote.total[0]; const originalUsersCount = usersChart.local.total[0]; - const usersCount = originalUsersCount + usersChart.remote.total[0]; const [ reactionsCount,