Skip to content

Commit

Permalink
fix(2151): helm-release-v12.1.0 (#223)
Browse files Browse the repository at this point in the history
- Fixes for central-services-metrics dependency updated, /metrics end-point fixed.
  • Loading branch information
mdebarros authored Jun 4, 2021
1 parent 6076ff1 commit b06ad0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/metrics/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit b06ad0e

Please sign in to comment.