fixing
This commit is contained in:
parent
632d05f656
commit
ab65a0b3c0
@ -19,7 +19,7 @@ export const addInventory = async (req, res) => {
|
|||||||
const rdStock = await RDStock.findOne({ userId: addedForId });
|
const rdStock = await RDStock.findOne({ userId: addedForId });
|
||||||
if (!rdStock) {
|
if (!rdStock) {
|
||||||
return res
|
return res
|
||||||
.status(404)
|
.status(400)
|
||||||
.json({ error: "Stock not available for the RetailDistributor" });
|
.json({ error: "Stock not available for the RetailDistributor" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user