metrics: fix up app graphs after api changes

This commit is contained in:
Girish Ramakrishnan
2025-07-07 20:09:09 +02:00
parent 4cf1739604
commit 6b2e98b9be
5 changed files with 58 additions and 39 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ async function getMetrics(req, res, next) {
const intervalSecs = parseInt(req.query.intervalSecs);
const noNullPoints = !!req.query.noNullPoints;
const [error, result] = await safe(metrics.get(req.params.service, { fromSecs, intervalSecs, noNullPoints, serviceIds: [req.params.service] }));
const [error, result] = await safe(metrics.get({ fromSecs, intervalSecs, noNullPoints, serviceIds: [req.params.service] }));
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(200, result));