From e7632afad6f90d3235c4641e44822c6928e9cdfc Mon Sep 17 00:00:00 2001 From: sabarinathan155 Date: Thu, 8 May 2025 12:02:25 +0530 Subject: [PATCH] create product changes --- src/api-server/controller/simulation/productService.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/api-server/controller/simulation/productService.ts b/src/api-server/controller/simulation/productService.ts index 9578240..f213e81 100644 --- a/src/api-server/controller/simulation/productService.ts +++ b/src/api-server/controller/simulation/productService.ts @@ -65,10 +65,7 @@ export class productFlowservice { }) if (newProduct) { - if (!eventDatas) { - return res.status(404).json({ message: "eventData not found" }); - - } else { + if (eventDatas) { const addEventData = await EventsDataModel(organization).create({ productId: productId, modelUuid: eventDatas?.modelUuid,