From 46127aaf52eee3ace1a14a821175c9cfb087d575 Mon Sep 17 00:00:00 2001 From: htvenkatesh Date: Thu, 14 Sep 2023 12:49:40 +0530 Subject: [PATCH] chages --- src/ingestion/services/event/event.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ingestion/services/event/event.service.ts b/src/ingestion/services/event/event.service.ts index 49b6010..31f8b8e 100644 --- a/src/ingestion/services/event/event.service.ts +++ b/src/ingestion/services/event/event.service.ts @@ -200,10 +200,10 @@ export class EventService { async createTelemetryEvent(inputData) { try { - if (inputData.event_name) { - let eventName = inputData.event_name; + if (inputData?.event_name) { + let eventName = inputData?.event_name; let queryStr = await IngestionDatasetQuery.getEvents(eventName); - const queryResult = await this.DatabaseService.executeQuery(queryStr.query, queryStr.values); + const queryResult = await this.DatabaseService.executeQuery(queryStr?.query, queryStr?.values); if (queryResult?.length === 1) { let validArray = [], invalidArray = []; if (inputData.event && inputData.event.length > 0) {