- edit campi prodotti
- edit ordini
This commit is contained in:
@@ -106,6 +106,7 @@ module.exports.updateCartByCartId = async function (cartId, newCart) {
|
||||
const items = newCart.items;
|
||||
const totalQty = newCart.totalQty;
|
||||
const totalPrice = newCart.totalPrice;
|
||||
const note = newCart.note;
|
||||
|
||||
const modify_at = new Date();
|
||||
|
||||
@@ -114,7 +115,8 @@ module.exports.updateCartByCartId = async function (cartId, newCart) {
|
||||
items,
|
||||
totalPrice,
|
||||
totalQty,
|
||||
modify_at,
|
||||
note,
|
||||
modify_at: new Date(),
|
||||
},
|
||||
}, { new: false }).lean().then((ris) => {
|
||||
return ris;
|
||||
|
||||
Reference in New Issue
Block a user