👕 Fix lint issue

This commit is contained in:
Jan Oberhauser 2021-03-23 17:42:38 +01:00
parent dab82965a4
commit 11fb97223c
2 changed files with 3 additions and 3 deletions

View file

@ -167,7 +167,7 @@ export class JotFormTrigger implements INodeType {
const resolveData = this.getNodeParameter('resolveData', false) as boolean;
const onlyAnswers = this.getNodeParameter('onlyAnswers', false) as boolean;
const form = new formidable.IncomingForm();
const form = new formidable.IncomingForm({});
return new Promise((resolve, reject) => {

View file

@ -404,7 +404,7 @@ export class Webhook implements INodeType {
// @ts-ignore
const mimeType = headers['content-type'] || 'application/json';
if (mimeType.includes('multipart/form-data')) {
const form = new formidable.IncomingForm();
const form = new formidable.IncomingForm({});
return new Promise((resolve, reject) => {
@ -427,7 +427,7 @@ export class Webhook implements INodeType {
binaryPropertyName = `${options.binaryPropertyName}${count}`;
}
const fileJson = (files[file] as formidable.File).toJSON() as IDataObject;
const fileJson = (files[file] as formidable.File).toJSON() as unknown 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);