- 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);
|
||||
}
|
||||
|
||||
/*
|
||||
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 });
|
||||
|
||||
Reference in New Issue
Block a user