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" }); }