add item quantity input

This commit is contained in:
np.w
2021-02-19 08:51:05 -06:00
parent 1fe9d50bb2
commit 5309c7e76f
2 changed files with 17 additions and 8 deletions
+2 -1
View File
@@ -95,7 +95,8 @@ app.put('/box/:boxId/item/:itemId', async (request, response) => {
await Box.updateOne({ '_id': boxID, 'item._id': itemID }, {
$set: {
'item.$.name': request.body.name,
'item.$.description': request.body.description
'item.$.description': request.body.description,
'item.$.quantity': request.body.quantity
}
})
const updatedBox = await getBox(boxID);