access body prop before desc
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ 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.description
|
||||
'item.$.description': request.body.description
|
||||
}
|
||||
})
|
||||
const updatedBox = await getBox(boxID);
|
||||
|
||||
Reference in New Issue
Block a user