- filtro se GAS o Prodotti

This commit is contained in:
Surya Paolo
2023-12-28 21:00:02 +01:00
parent ca6d29414a
commit c001587702
7 changed files with 95 additions and 32 deletions

View File

@@ -90,6 +90,8 @@ class Cart {
myitem.order.quantitypreordered += step;
}
myitem.order.modify_at = new Date();
this.updatetotals();
await Order.findOneAndUpdate({ _id: myitem.order._id }, { $set: myitem.order }, { new: false });
return myitem.order;