From 74a6ba33fd2b5336c6e051aba96daa60c062f056 Mon Sep 17 00:00:00 2001 From: dhanush-2397 Date: Wed, 31 Jan 2024 16:31:02 +0530 Subject: [PATCH] File status API changes --- src/ingestion/services/data-emission/data-emission.service.ts | 2 +- src/ingestion/services/file-status/file-status.service.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ingestion/services/data-emission/data-emission.service.ts b/src/ingestion/services/data-emission/data-emission.service.ts index ed9df1e..ea5062e 100644 --- a/src/ingestion/services/data-emission/data-emission.service.ts +++ b/src/ingestion/services/data-emission/data-emission.service.ts @@ -21,7 +21,7 @@ export class DataEmissionService { const fileSize = File.size; let uploadedFileName = File.originalname; - const queryStr = await IngestionDatasetQuery.createFileTracker(uploadedFileName, 'Emission', uploadedFileName.split('.zip')[0], fileSize); + const queryStr = await IngestionDatasetQuery.createFileTracker(uploadedFileName, 'event', uploadedFileName.split('.zip')[0], fileSize); const queryResult = await this.DatabaseService.executeQuery(queryStr.query, queryStr.values); //Unzip the file diff --git a/src/ingestion/services/file-status/file-status.service.ts b/src/ingestion/services/file-status/file-status.service.ts index 06bce85..9fbccf7 100644 --- a/src/ingestion/services/file-status/file-status.service.ts +++ b/src/ingestion/services/file-status/file-status.service.ts @@ -22,7 +22,6 @@ export class FileStatusService { "type": "string", "enum": [ "event", - "dataset", "dimension" ], "shouldnotnull": true