- corretto cancellazione ordine
This commit is contained in:
@@ -43,6 +43,7 @@ router.post('/', auth_default, async function (req, res, next) {
|
|||||||
orders = await OrdersCart.getOrdersCartByUserId(userId, idapp, 0, false);
|
orders = await OrdersCart.getOrdersCartByUserId(userId, idapp, 0, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
let ind = 0;
|
let ind = 0;
|
||||||
for (const ord of orders) {
|
for (const ord of orders) {
|
||||||
let newitems = []
|
let newitems = []
|
||||||
@@ -61,6 +62,7 @@ router.post('/', auth_default, async function (req, res, next) {
|
|||||||
|
|
||||||
ord.items = newitems
|
ord.items = newitems
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (products)
|
if (products)
|
||||||
return res.send({ code: server_constants.RIS_CODE_OK, products, orders });
|
return res.send({ code: server_constants.RIS_CODE_OK, products, orders });
|
||||||
|
|||||||
Reference in New Issue
Block a user