From 59882efa926e9b72d3d62ee2cfe5821f2f1923d9 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sat, 19 Dec 2020 23:03:24 +0100 Subject: [PATCH] :shirt: Fix lint issue --- packages/nodes-base/nodes/Egoi/Egoi.node.ts | 2 +- .../nodes-base/nodes/Egoi/GenericFunctions.ts | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/nodes-base/nodes/Egoi/Egoi.node.ts b/packages/nodes-base/nodes/Egoi/Egoi.node.ts index a00d12ce12..8e3029041b 100644 --- a/packages/nodes-base/nodes/Egoi/Egoi.node.ts +++ b/packages/nodes-base/nodes/Egoi/Egoi.node.ts @@ -674,7 +674,7 @@ export class Egoi implements INodeType { push_stats: responseData.push_stats, webpush_stats: responseData.webpush_stats, voice_stats: responseData.voice_stats, - } + }; } } diff --git a/packages/nodes-base/nodes/Egoi/GenericFunctions.ts b/packages/nodes-base/nodes/Egoi/GenericFunctions.ts index a5b5ea2136..7694223ed9 100644 --- a/packages/nodes-base/nodes/Egoi/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Egoi/GenericFunctions.ts @@ -14,9 +14,9 @@ import { } from 'n8n-workflow'; interface IContact { - tags: [], - base: IDataObject, - extra: IDataObject[], + tags: []; + base: IDataObject; + extra: IDataObject[]; } const fieldCache: { @@ -29,7 +29,7 @@ export async function getFields(this: IExecuteFunctions, listId: string) { return fieldCache[listId]; } fieldCache[listId] = await egoiApiRequest.call(this, 'GET', `/lists/${listId}/fields`); - return fieldCache[listId] + return fieldCache[listId]; } @@ -109,17 +109,17 @@ export async function simplify(this: IExecuteFunctions, contacts: IContact[], li for (const contact of contacts) { const extras = contact.extra.reduce( - (acumulator: IDataObject, currentValue: IDataObject): any => { - const key = fieldsKeyValue[currentValue.field_id as string] as string - return { [key]: currentValue.value, ...acumulator } + (acumulator: IDataObject, currentValue: IDataObject): any => { // tslint:disable-line:no-any + const key = fieldsKeyValue[currentValue.field_id as string] as string; + return { [key]: currentValue.value, ...acumulator }; }, - {} + {}, ); data.push({ ...contact.base, ...extras, tags: contact.tags, - }) + }); } return data;