File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
templates/web/src/services Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,13 @@ export class {{ service.name | caseUcfirst }} extends Service {
59
59
60
60
{% for parameter in method .parameters .query %}
61
61
if (typeof {% if parameter .isGlobal %}this.{% endif %}{{ parameter .name | caseCamel | escapeKeyword }} !== 'undefined') {
62
- payload['{{ parameter .name }}'] = {% if parameter .isGlobal %}this.{% endif %}{{ parameter .name | caseCamel | escapeKeyword }};
63
- }
62
+ payload['{{ parameter .name }}'] = {% if method . type == ' graphql ' %}JSON.stringify({% endif %}{% if parameter .isGlobal %}this.{% endif %}{{ parameter .name | caseCamel | escapeKeyword }}{% if method . type == ' graphql ' %}){% endif % };
63
+ % }
64
64
65
65
{% endfor %}
66
66
{% for parameter in method .parameters .body %}
67
67
if (typeof {% if parameter .isGlobal %}this.{% endif %}{{ parameter .name | caseCamel | escapeKeyword }} !== 'undefined') {
68
- payload['{{ parameter .name }}'] = {% if parameter .isGlobal %}this.{% endif %}{{ parameter .name | caseCamel | escapeKeyword }};
68
+ payload['{{ parameter .name }}'] = {% if method . type == ' graphql ' %}JSON.stringify({% endif %}{% if parameter .isGlobal %}this.{% endif %}{{ parameter .name | caseCamel | escapeKeyword }}{% if method . type == ' graphql ' %}){% endif % };
69
69
}
70
70
71
71
{% endfor %}
You can’t perform that action at this time.
0 commit comments