diff --git a/templates/lib/actions/action.js b/templates/lib/actions/action.js index 82b6e44..340b786 100644 --- a/templates/lib/actions/action.js +++ b/templates/lib/actions/action.js @@ -55,7 +55,7 @@ async function processAction(msg, cfg, snapshot, incomingMessageHeaders, tokenDa let body = msg.data; if (cfg && cfg.additionalParameters) { - body = putAdditionalParamsInBody.call(this, action, body, cfg.additionalParameters) + body = await putAdditionalParamsInBody.call(this, action, body, cfg.additionalParameters); } mapFieldNames(body); diff --git a/templates/package-lock.json b/templates/package-lock.json index ecfddd3..e066152 100644 --- a/templates/package-lock.json +++ b/templates/package-lock.json @@ -8,7 +8,7 @@ "version": "1.0.0", "license": "Apache-2.0", "dependencies": { - "@openintegrationhub/ferryman": "2.4.4", + "@openintegrationhub/ferryman": "2.4.5", "axios": "^1.4.0", "dayjs": "^1.10.7", "formdata-node": "4.4.1", @@ -130,9 +130,9 @@ "dev": true }, "node_modules/@openintegrationhub/ferryman": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/@openintegrationhub/ferryman/-/ferryman-2.4.4.tgz", - "integrity": "sha512-7oT2p061OCSNdf54Ql6Dweb4xZ9e4wzJlyDo9TuTDQlY8vqegrp/gafveGQw2bTR5tZpx6Ilw96MJ64IiaZj3g==", + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/@openintegrationhub/ferryman/-/ferryman-2.4.5.tgz", + "integrity": "sha512-2P+HS5TUgHdZMueV9an+PFAvRJk8j1dhYi0tE5k0hPmPjOiEzH9f5wD3Erndd+fAZ+FnPHEjOAUagfaNuRYSpg==", "dependencies": { "amqplib": "0.8.0", "bunyan": "1.8.10", diff --git a/templates/package.json b/templates/package.json index 5178592..36f7d8c 100644 --- a/templates/package.json +++ b/templates/package.json @@ -2,7 +2,7 @@ "version": "1.0.0", "main": "component.json", "dependencies": { - "@openintegrationhub/ferryman": "2.4.4", + "@openintegrationhub/ferryman": "2.4.5", "axios": "^1.4.0", "dayjs": "^1.10.7", "formdata-node": "4.4.1", @@ -25,4 +25,4 @@ "name": "Open Integration Hub" }, "license": "Apache-2.0" -} \ No newline at end of file +}