- corretto cancellazione ordine

This commit is contained in:
Surya Paolo
2024-02-15 18:59:07 +01:00
parent 6e61138fde
commit 5a6c08e908

View File

@@ -43,6 +43,7 @@ router.post('/', auth_default, async function (req, res, next) {
orders = await OrdersCart.getOrdersCartByUserId(userId, idapp, 0, false);
}
/*
let ind = 0;
for (const ord of orders) {
let newitems = []
@@ -61,6 +62,7 @@ router.post('/', auth_default, async function (req, res, next) {
ord.items = newitems
}
*/
if (products)
return res.send({ code: server_constants.RIS_CODE_OK, products, orders });