- edit campi prodotti

- edit ordini
This commit is contained in:
Surya Paolo
2024-01-13 00:28:53 +01:00
parent c63e345285
commit 7bf549569d
6 changed files with 126 additions and 8 deletions

View File

@@ -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;