Skip to content

Commit

Permalink
chages
Browse files Browse the repository at this point in the history
  • Loading branch information
htvenkatesh committed Sep 14, 2023
1 parent d34c988 commit 46127aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ingestion/services/event/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 46127aa

Please sign in to comment.