mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
This commit is contained in:
@@ -932,9 +932,9 @@ export class Dropbox implements INodeType {
|
||||
}
|
||||
|
||||
if (resource === 'file' && operation === 'upload') {
|
||||
const data = JSON.parse(responseData);
|
||||
const data = JSON.parse(responseData as string);
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(data),
|
||||
this.helpers.returnJsonArray(data as IDataObject[]),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
@@ -958,7 +958,7 @@ export class Dropbox implements INodeType {
|
||||
|
||||
const filePathDownload = this.getNodeParameter('path', i) as string;
|
||||
items[i].binary![dataPropertyNameDownload] = await this.helpers.prepareBinaryData(
|
||||
Buffer.from(responseData),
|
||||
Buffer.from(responseData as string),
|
||||
filePathDownload,
|
||||
);
|
||||
} else if (resource === 'folder' && operation === 'list') {
|
||||
@@ -1000,20 +1000,22 @@ export class Dropbox implements INodeType {
|
||||
} else if (resource === 'search' && operation === 'query') {
|
||||
let data = responseData;
|
||||
if (returnAll) {
|
||||
data = simple ? simplify(responseData) : responseData;
|
||||
data = simple ? simplify(responseData as IDataObject[]) : responseData;
|
||||
} else {
|
||||
data = simple ? simplify(responseData[property]) : responseData[property];
|
||||
data = simple
|
||||
? simplify(responseData[property] as IDataObject[])
|
||||
: responseData[property];
|
||||
}
|
||||
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(data),
|
||||
this.helpers.returnJsonArray(data as IDataObject[]),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
|
||||
returnData.push(...executionData);
|
||||
} else {
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
this.helpers.returnJsonArray(responseData as IDataObject[]),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
|
||||
Reference in New Issue
Block a user