n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,22 +1,16 @@
import {
IExecuteFunctions,
} from 'n8n-core';
import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
NodeOperationError,
} from 'n8n-workflow';
import { IDataObject, INodeExecutionData, NodeOperationError } from 'n8n-workflow';
import {
apiRequest,
} from '../../../transport';
import { apiRequest } from '../../../transport';
export async function updateTicket(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]> {
export async function updateTicket(
this: IExecuteFunctions,
index: number,
): Promise<INodeExecutionData[]> {
const id = this.getNodeParameter('ticketId', index) as IDataObject;
const { assetId, customerId, dueDate, issueType, status, subject, ticketType, contactId } = this.getNodeParameter('updateFields', index) as IDataObject;
const { assetId, customerId, dueDate, issueType, status, subject, ticketType, contactId } =
this.getNodeParameter('updateFields', index) as IDataObject;
const qs = {} as IDataObject;
const requestMethod = 'PUT';
@@ -35,7 +29,9 @@ export async function updateTicket(this: IExecuteFunctions, index: number): Prom
};
if (!Object.keys(body).length) {
throw new NodeOperationError(this.getNode(), 'At least one update fields has to be defined', { itemIndex: index });
throw new NodeOperationError(this.getNode(), 'At least one update fields has to be defined', {
itemIndex: index,
});
}
let responseData;