Skip to content

Commit

Permalink
fix: hotfix for tmf url (#86)
Browse files Browse the repository at this point in the history
The `externalSettlementsEndpoint` is very specific to the TMF implementation. This fix will be merged into master to deal with the technical-debt, and the next major version should include a re-factor to fix this in a general manner. I have updated the following story mojaloop/project#2639 to address this going forward.

Fixes:
- bump to patch version
- added missing path for TMF service
- added .nvmrc
  • Loading branch information
mdebarros authored Jan 14, 2022
1 parent 965673b commit f537e2e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.13.0
2 changes: 1 addition & 1 deletion src/handlers/settlement-window-close.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const handler = (router, routesContext) => {
// if an external settlement service is provided use that
if (routesContext.config.externalSettlementsEndpoint) {
try {
const resp = await axios.post(`${routesContext.config.externalSettlementsEndpoint}`, {});
const resp = await axios.post(`${routesContext.config.externalSettlementsEndpoint}/settlement-windows/current/close`, {});
if (resp.status === 202) {
ctx.response.status = 200;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/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 src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mojaloop/finance-portal-backend-service",
"version": "15.4.0",
"version": "15.4.1",
"description": "The backend service to support the finance portal web ui. Essentially a thin wrapper around SQL queries.",
"license": "Apache-2.0",
"contributors": [
Expand Down

0 comments on commit f537e2e

Please sign in to comment.