From 5a6c08e908a886723e49a7ecf5ba68bca6af373e Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Thu, 15 Feb 2024 18:59:07 +0100 Subject: [PATCH] - corretto cancellazione ordine --- src/server/router/products_router.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/router/products_router.js b/src/server/router/products_router.js index df1bc14..069e6c6 100755 --- a/src/server/router/products_router.js +++ b/src/server/router/products_router.js @@ -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 });