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,