Skip to content

Commit e170c34

Browse files
committed
Fix node service params
1 parent 086d438 commit e170c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/node/lib/services/service.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class {{ service.name | caseUcfirst }} extends Service {
6464

6565
{% endif %}
6666
{% endfor %}
67-
let path = '{{ method.path }}'{% for parameter in method.parameters.path %}.replace('{{ '{' }}{{ parameter.name | caseCamel }}{{ '}' }}', {{ parameter.name | caseCamel | escapeKeyword }}){% endfor %};
67+
let path = '{{ method.path }}'{% for parameter in method.parameters.path %}.replace('{{ '{' }}{{ parameter.name | caseCamel }}{{ '}' }}', {% if parameter.isGlobal %}this.{% endif %}{{ parameter.name | caseCamel | escapeKeyword }}){% endfor %};
6868
let payload = {};
6969
{% for parameter in method.parameters.query %}
7070

0 commit comments

Comments
 (0)