From 4134ce27491c71d0408497d19e67e413dec23bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=87=E1=85=A1=E1=86=A8=E1=84=8C=E1=85=AE=E1=86=AB?= =?UTF-8?q?=E1=84=92=E1=85=A1?= Date: Fri, 16 May 2025 15:39:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95:=20metric=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/server/src/utils/metrics.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/utils/metrics.ts b/apps/server/src/utils/metrics.ts index 3ab28c5..4558e61 100644 --- a/apps/server/src/utils/metrics.ts +++ b/apps/server/src/utils/metrics.ts @@ -124,9 +124,9 @@ export class MetricsManager { ); await this.db.run(sql` - UPDATE metrics + UPDATE metric SET count = count - 1 - WHERE deploymentId = ${previousDeploymentKey} AND label = ${previousLabel} AND type = ${MetricType.ACTIVE} AND count > 0 + WHERE deployment_id = ${previousDeploymentKey} AND label = ${previousLabel} AND type = ${MetricType.ACTIVE} AND count > 0 `); }