Skip to content

Commit afbdd36

Browse files
authored
fix(server): fix get metering data miss quota (#1673)
1 parent b2fdf04 commit afbdd36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/billing/billing.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ export class BillingService {
228228
})
229229

230230
const cpuTask = prom
231-
.instantQuery(`laf:billing:cpu{appid=${app.appid}}`, time)
231+
.instantQuery(`laf:billing:cpu{appid="${app.appid}"}`, time)
232232
.then((res) => res.result[0])
233233
.then((res) => Number(res.value.value))
234234

235235
const memoryTask = prom
236-
.instantQuery(`laf:billing:memory{appid=${app.appid}`, time)
236+
.instantQuery(`laf:billing:memory{appid="${app.appid}"}`, time)
237237
.then((res) => res.result[0])
238238
.then((res) => Number(res.value.value))
239239

0 commit comments

Comments
 (0)