From b06ad0e03409c4f1a559e1534018b69cd0e0eb39 Mon Sep 17 00:00:00 2001 From: Miguel de Barros Date: Fri, 4 Jun 2021 18:49:26 +0200 Subject: [PATCH] fix(2151): helm-release-v12.1.0 (#223) - Fixes for central-services-metrics dependency updated, /metrics end-point fixed. --- package-lock.json | 2 +- package.json | 2 +- src/metrics/handler.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2d9640e4..f299d619 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "sims", - "version": "11.1.1", + "version": "11.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0742581c..dda98a48 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sims", - "version": "11.1.1", + "version": "11.1.2", "description": "A super-simple fsp simulator", "main": "src/index.js", "author": "ModusBox", diff --git a/src/metrics/handler.js b/src/metrics/handler.js index 0a51b5ff..f34081a8 100644 --- a/src/metrics/handler.js +++ b/src/metrics/handler.js @@ -27,6 +27,6 @@ const Metrics = require('../lib/metrics') const Enums = require('@mojaloop/central-services-shared').Enum -exports.metrics = function (request, h) { - return h.response(Metrics.getMetricsForPrometheus()).code(Enums.Http.ReturnCodes.OK.CODE) +exports.metrics = async function (request, h) { + return h.response(await Metrics.getMetricsForPrometheus()).code(Enums.Http.ReturnCodes.OK.CODE) }