Fixes to CustomerIo-Node

This commit is contained in:
Jan Oberhauser
2020-08-04 10:32:51 +02:00
parent c1b8811772
commit 5aec61bb18
4 changed files with 10 additions and 9 deletions

View File

@@ -55,9 +55,9 @@ export async function apiRequest(this: IHookFunctions | IExecuteFunctions | ILoa
}
}
export function eventExists (currentEvents : string[], webhookEvents: IDataObject) {
export function eventExists(currentEvents: string[], webhookEvents: IDataObject) {
for (const currentEvent of currentEvents) {
if (get(webhookEvents, `${currentEvent.split('.')[0]}.${currentEvent.split('.')[1]}`) !== true) {
if (get(webhookEvents, `${currentEvent.split('.')[0]}.${currentEvent.split('.')[1]}`) !== true) {
return false;
}
}