mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
This commit is contained in:
@@ -35,7 +35,7 @@ export async function googleApiRequest(
|
||||
if (Object.keys(headers).length !== 0) {
|
||||
options.headers = Object.assign({}, options.headers, headers);
|
||||
}
|
||||
if (Object.keys(body).length === 0) {
|
||||
if (Object.keys(body as IDataObject).length === 0) {
|
||||
delete options.body;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ export async function googleApiRequestAllItems(
|
||||
uri,
|
||||
);
|
||||
qs.pageToken = responseData.nextPageToken;
|
||||
returnData.push.apply(returnData, responseData[resource]);
|
||||
returnData.push.apply(returnData, responseData[resource] as IDataObject[]);
|
||||
} while (responseData.nextPageToken !== undefined && responseData.nextPageToken !== '');
|
||||
|
||||
return returnData;
|
||||
|
||||
Reference in New Issue
Block a user