n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -1,22 +1,17 @@
|
||||
import {
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-core';
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
INodeExecutionData,
|
||||
} from 'n8n-workflow';
|
||||
import { IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
apiRequest,
|
||||
} from '../../../transport';
|
||||
import { apiRequest } from '../../../transport';
|
||||
|
||||
export async function invite(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]> {
|
||||
|
||||
export async function invite(
|
||||
this: IExecuteFunctions,
|
||||
index: number,
|
||||
): Promise<INodeExecutionData[]> {
|
||||
const teamId = this.getNodeParameter('teamId', index) as string;
|
||||
|
||||
const emails = (this.getNodeParameter('emails', index) as string).split(',');
|
||||
|
||||
|
||||
const qs = {} as IDataObject;
|
||||
const requestMethod = 'POST';
|
||||
const endpoint = `teams/${teamId}/invite/email`;
|
||||
@@ -25,4 +20,4 @@ export async function invite(this: IExecuteFunctions, index: number): Promise<IN
|
||||
const responseData = await apiRequest.call(this, requestMethod, endpoint, body, qs);
|
||||
|
||||
return this.helpers.returnJsonArray(responseData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user