Skip to content

Commit 55b55af

Browse files
committed
fix(api-core): allow id to be in the config
1 parent 686fdc6 commit 55b55af

File tree

1 file changed

+3
-3
lines changed
  • packages/api-core/src

1 file changed

+3
-3
lines changed

packages/api-core/src/ms.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export default class AvMicroservice extends AvApi {
1414

1515
// override aries 1 url concatentation
1616
getUrl(config, id = '') {
17-
const { path, name } = this.config(config);
17+
const { path, name, id: configId } = this.config(config);
1818
let parts = [path, name];
19-
if (id) {
20-
parts = [path, name, id];
19+
if (id || configId) {
20+
parts = [path, name, id || configId];
2121
}
2222
return parts
2323
.join('/')

0 commit comments

Comments
 (0)