mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
OptionsWithUri,
|
||||
} from 'request';
|
||||
import { OptionsWithUri } from 'request';
|
||||
|
||||
import {
|
||||
IExecuteFunctions,
|
||||
@@ -9,10 +7,7 @@ import {
|
||||
IWebhookFunctions,
|
||||
} from 'n8n-core';
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
NodeApiError,
|
||||
} from 'n8n-workflow';
|
||||
import { IDataObject, NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function webflowApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions,
|
||||
@@ -34,7 +29,6 @@ export async function webflowApiRequest(
|
||||
credentialsType = 'webflowOAuth2Api';
|
||||
}
|
||||
|
||||
|
||||
let options: OptionsWithUri = {
|
||||
headers: {
|
||||
'accept-version': '1.0.0',
|
||||
@@ -68,7 +62,6 @@ export async function webflowApiRequestAllItems(
|
||||
body: IDataObject = {},
|
||||
query: IDataObject = {},
|
||||
) {
|
||||
|
||||
const returnData: IDataObject[] = [];
|
||||
|
||||
let responseData;
|
||||
@@ -82,10 +75,7 @@ export async function webflowApiRequestAllItems(
|
||||
query.offset += query.limit;
|
||||
}
|
||||
returnData.push.apply(returnData, responseData.items);
|
||||
} while (
|
||||
returnData.length < responseData.total
|
||||
);
|
||||
} while (returnData.length < responseData.total);
|
||||
|
||||
return returnData;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user