mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
👕 Fix lint issue
This commit is contained in:
parent
9543221cdd
commit
914b90f4a9
|
@ -422,8 +422,8 @@ export class Webhook implements INodeType {
|
|||
binaryPropertyName = `${options.binaryPropertyName}${count}`;
|
||||
}
|
||||
|
||||
const fileJson = files[file].toJSON() as IDataObject;
|
||||
const fileContent = await fs.promises.readFile(files[file].path);
|
||||
const fileJson = (files[file] as formidable.File).toJSON() as IDataObject;
|
||||
const fileContent = await fs.promises.readFile((files[file] as formidable.File).path);
|
||||
|
||||
returnItem.binary![binaryPropertyName] = await this.helpers.prepareBinaryData(Buffer.from(fileContent), fileJson.name as string, fileJson.type as string);
|
||||
|
||||
|
|
Loading…
Reference in a new issue