Poter inserire un Ordine anche per un altra persona... (Modalità Cassa)
This commit is contained in:
@@ -201,6 +201,7 @@ router.put('/:userId', authenticate, async function (req, res, next) {
|
||||
items: newCart.items,
|
||||
totalQty: newCart.totalQty,
|
||||
totalPrice: newCart.totalPrice,
|
||||
totalPriceCalc: newCart.totalPriceCalc,
|
||||
userId: userId
|
||||
},
|
||||
function (err, result) {
|
||||
@@ -213,6 +214,7 @@ router.put('/:userId', authenticate, async function (req, res, next) {
|
||||
items: newCart.items,
|
||||
totalQty: newCart.totalQty,
|
||||
totalPrice: newCart.totalPrice,
|
||||
totalPriceCalc: newCart.totalPriceCalc,
|
||||
userId: userId
|
||||
}
|
||||
await Cart.createCart(newCartobj, function (err, resultCart) {
|
||||
|
||||
Reference in New Issue
Block a user