mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
👕 Fix lint issue
This commit is contained in:
parent
63452e7878
commit
59882efa92
|
@ -674,7 +674,7 @@ export class Egoi implements INodeType {
|
||||||
push_stats: responseData.push_stats,
|
push_stats: responseData.push_stats,
|
||||||
webpush_stats: responseData.webpush_stats,
|
webpush_stats: responseData.webpush_stats,
|
||||||
voice_stats: responseData.voice_stats,
|
voice_stats: responseData.voice_stats,
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,9 @@ import {
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
interface IContact {
|
interface IContact {
|
||||||
tags: [],
|
tags: [];
|
||||||
base: IDataObject,
|
base: IDataObject;
|
||||||
extra: IDataObject[],
|
extra: IDataObject[];
|
||||||
}
|
}
|
||||||
|
|
||||||
const fieldCache: {
|
const fieldCache: {
|
||||||
|
@ -29,7 +29,7 @@ export async function getFields(this: IExecuteFunctions, listId: string) {
|
||||||
return fieldCache[listId];
|
return fieldCache[listId];
|
||||||
}
|
}
|
||||||
fieldCache[listId] = await egoiApiRequest.call(this, 'GET', `/lists/${listId}/fields`);
|
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) {
|
for (const contact of contacts) {
|
||||||
const extras = contact.extra.reduce(
|
const extras = contact.extra.reduce(
|
||||||
(acumulator: IDataObject, currentValue: IDataObject): any => {
|
(acumulator: IDataObject, currentValue: IDataObject): any => { // tslint:disable-line:no-any
|
||||||
const key = fieldsKeyValue[currentValue.field_id as string] as string
|
const key = fieldsKeyValue[currentValue.field_id as string] as string;
|
||||||
return { [key]: currentValue.value, ...acumulator }
|
return { [key]: currentValue.value, ...acumulator };
|
||||||
},
|
},
|
||||||
{}
|
{},
|
||||||
);
|
);
|
||||||
data.push({
|
data.push({
|
||||||
...contact.base,
|
...contact.base,
|
||||||
...extras,
|
...extras,
|
||||||
tags: contact.tags,
|
tags: contact.tags,
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
|
Loading…
Reference in a new issue