👕 Fix lint issue

This commit is contained in:
Jan Oberhauser 2022-06-05 19:44:04 +02:00
parent 6bdc7c1f7a
commit 6f70bacdb0
2 changed files with 7 additions and 7 deletions

View file

@ -103,8 +103,8 @@ export class CalTrigger implements INodeType {
typeOptions: {
alwaysOpenEditWindow: true,
rows: 4,
}
}
},
},
],
},
],
@ -165,7 +165,7 @@ export class CalTrigger implements INodeType {
subscriberUrl,
eventTriggers,
active,
...options as object
...options as object,
};
const responseData = await calApiRequest.call(this, 'POST', '/hooks', body);
@ -206,7 +206,7 @@ export class CalTrigger implements INodeType {
this.helpers.returnJsonArray({
triggerEvent: req.body.triggerEvent,
createdAt: req.body.createdAt,
...req.body.payload
...req.body.payload,
}),
],
};

View file

@ -5,12 +5,12 @@ import {
import {
IDataObject,
IHttpRequestOptions,
IHttpRequestMethods,
IHookFunctions,
IHttpRequestMethods,
IHttpRequestOptions,
INodePropertyOptions,
IWebhookFunctions,
NodeApiError,
INodePropertyOptions,
} from 'n8n-workflow';
export async function calApiRequest(this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, resource: string, body: any = {}, query: IDataObject = {}, option: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any