Skip to content

Commit

Permalink
fix: moleculerjs#331 mergeParams always true for internal services
Browse files Browse the repository at this point in the history
  • Loading branch information
ggondim authored Aug 28, 2023
1 parent 7963fb4 commit 641a19f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,11 @@ module.exports = {
urlPath = urlPath.replace(this._isscRe, "$");
let action = urlPath;

// #331 Always merge parameters for internal services
if (urlPath.indexOf("$") !== -1) {
route.opts.mergeParams = true;
}

// Resolve aliases
if (foundAlias) {
const alias = foundAlias.alias;
Expand Down

0 comments on commit 641a19f

Please sign in to comment.