n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
import {
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-core';
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
INodeExecutionData,
|
||||
} from 'n8n-workflow';
|
||||
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
apiRequest, apiRequestAllItems
|
||||
} from '../../../transport';
|
||||
import { apiRequest, apiRequestAllItems } from '../../../transport';
|
||||
|
||||
export async function getAll(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]> {
|
||||
export async function getAll(
|
||||
this: IExecuteFunctions,
|
||||
index: number,
|
||||
): Promise<INodeExecutionData[]> {
|
||||
const returnAll = this.getNodeParameter('returnAll', index) as boolean;
|
||||
|
||||
const qs = {} as IDataObject;
|
||||
@@ -26,6 +22,6 @@ export async function getAll(this: IExecuteFunctions, index: number): Promise<IN
|
||||
} else {
|
||||
const limit = this.getNodeParameter('limit', index) as IDataObject;
|
||||
responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
|
||||
return this.helpers.returnJsonArray((responseData.contacts).splice(0, limit));
|
||||
return this.helpers.returnJsonArray(responseData.contacts.splice(0, limit));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user