From ab65a0b3c0aef1d42df972c53d3e80bacb29d30b Mon Sep 17 00:00:00 2001 From: Sibunnayak Date: Fri, 11 Oct 2024 10:20:49 +0530 Subject: [PATCH] fixing --- resources/Inventory/InventoryController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/Inventory/InventoryController.js b/resources/Inventory/InventoryController.js index fd1fc7b..596cb73 100644 --- a/resources/Inventory/InventoryController.js +++ b/resources/Inventory/InventoryController.js @@ -19,7 +19,7 @@ export const addInventory = async (req, res) => { const rdStock = await RDStock.findOne({ userId: addedForId }); if (!rdStock) { return res - .status(404) + .status(400) .json({ error: "Stock not available for the RetailDistributor" }); }