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) }