mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -26,7 +26,7 @@ export async function boxApiRequest(
|
||||
method,
|
||||
body,
|
||||
qs,
|
||||
uri: uri || `https://api.box.com/2.0${resource}`,
|
||||
uri: uri ?? `https://api.box.com/2.0${resource}`,
|
||||
json: true,
|
||||
};
|
||||
options = Object.assign({}, options, option);
|
||||
@@ -63,7 +63,7 @@ export async function boxApiRequestAllItems(
|
||||
query.offset = 0;
|
||||
do {
|
||||
responseData = await boxApiRequest.call(this, method, endpoint, body, query);
|
||||
query.offset = responseData.offset + query.limit;
|
||||
query.offset = (responseData.offset as number) + query.limit;
|
||||
returnData.push.apply(returnData, responseData[propertyName]);
|
||||
} while (responseData[propertyName].length !== 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user