1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-22 10:39:35 +03:00

👕 Fix lint issue

This commit is contained in:
Jan Oberhauser 2020-02-06 21:32:55 -08:00
parent c188d77d62
commit 6c5145cc6e

View File

@ -324,7 +324,7 @@ export class Webhook implements INodeType {
headers,
query: this.getQueryData(),
});
for (let file of Object.keys(files)) {
for (const file of Object.keys(files)) {
const fileJson = files[file].toJSON() as IDataObject;
const [fileName, fileExtension] = (fileJson.name as string).split('.');
const fileContent = await fs.promises.readFile(files[file].path);
@ -333,7 +333,7 @@ export class Webhook implements INodeType {
mimeType: fileJson.type,
fileName: fileJson.name,
fileExtension,
})
});
}
resolve({
workflowData: [