Skip to content

Commit 2fcb902

Browse files
committed
remove comments
1 parent 82b5195 commit 2fcb902

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

templates/node/base/requests/api.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ return await this.client.call('{{ method.method | caseLower }}', path, {
55
{% for key, header in method.headers %}
66
'{{ key }}': '{{ header }}',
77
{% endfor %}
8-
}, payload{# location check #});
8+
}, payload{% if method.type == 'location' %}, 'arraybuffer'{% endif %}
9+
);

templates/node/base/requests/location.twig

Lines changed: 0 additions & 1 deletion
This file was deleted.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ class {{ service.name | caseUcfirst }} extends Service {
5656
* @returns {Promise}
5757
*/
5858
async {{ method.name | caseCamel }}({% for parameter in method.parameters.all | filter((param) => not param.isGlobal) %}{{ parameter.name | caseCamel | escapeKeyword }}{% if not loop.last %}, {% endif %}{% endfor %}{% if 'multipart/form-data' in method.consumes %}, onProgress = () => {}{% endif %}) {
59-
{# modified params section #}
6059
let path = '{{ method.path }}'{% for parameter in method.parameters.path %}.replace('{{ '{' }}{{ parameter.name | caseCamel }}{{ '}' }}', {% if parameter.isGlobal %}this.{% endif %}{{ parameter.name | caseCamel | escapeKeyword }}){% endfor %};
61-
{# modified params #}
62-
60+
{{ include ('node/base/params.twig')}}
6361
{% if 'multipart/form-data' in method.consumes %}
64-
{# file section #}
65-
{# api section #}
62+
{{ include ('node/base/requests/file.twig)}}
63+
{% else %}
64+
{{ include('php/base/requests/api.twig') }}
6665
{% endif %}
6766
}
67+
{% endfor %}
6868
}
6969
7070
module.exports = {{ service.name | caseUcfirst }};

0 commit comments

Comments
 (0)