From afbdd369945c4b357a4a983e531370926db3ef11 Mon Sep 17 00:00:00 2001 From: 0fatal <72899968+0fatal@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:25:48 +0800 Subject: [PATCH] fix(server): fix get metering data miss quota (#1673) --- server/src/billing/billing.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/billing/billing.service.ts b/server/src/billing/billing.service.ts index e269337925..377066fb49 100644 --- a/server/src/billing/billing.service.ts +++ b/server/src/billing/billing.service.ts @@ -228,12 +228,12 @@ export class BillingService { }) const cpuTask = prom - .instantQuery(`laf:billing:cpu{appid=${app.appid}}`, time) + .instantQuery(`laf:billing:cpu{appid="${app.appid}"}`, time) .then((res) => res.result[0]) .then((res) => Number(res.value.value)) const memoryTask = prom - .instantQuery(`laf:billing:memory{appid=${app.appid}`, time) + .instantQuery(`laf:billing:memory{appid="${app.appid}"}`, time) .then((res) => res.result[0]) .then((res) => Number(res.value.value))