Skip to content

Commit 8d7ef13

Browse files
Apply suggestions from code review
Co-authored-by: Torsten Dittmann <[email protected]>
1 parent a0c7e9d commit 8d7ef13

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
@@ -133,7 +133,7 @@ class {{ service.name | caseUcfirst }} extends Service {
133133
}
134134

135135
const stream = Stream.Readable.from(currentChunk);
136-
payload['{{ parameter.name }}'] = { type: 'file', file: stream, filename: '{{ parameter.name }}'.filename };
136+
payload['{{ parameter.name }}'] = { type: 'file', file: stream, filename: {{ parameter.name }}.filename };
137137

138138
response = await selfClient.call('{{ method.method | caseLower }}', path, headers, payload{% if method.type == 'location' %}, 'arraybuffer'{% endif %});
139139

0 commit comments

Comments
 (0)