graphs: add app response in system graphs

This commit is contained in:
Girish Ramakrishnan
2022-10-12 22:08:10 +02:00
parent 4fe0402735
commit b5da4143c9
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ async function getAppGraphs(req, res, next) {
const fromMinutes = parseInt(req.query.fromMinutes);
const noNullPoints = !!req.query.noNullPoints;
const [error, result] = await safe(graphs.getByApp(req.app, fromMinutes, noNullPoints));
const [error, result] = await safe(graphs.getApp(req.app, fromMinutes, noNullPoints));
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(200, result));