diff --git a/users-api.js b/users-api.js index 45259faa..435e5bd6 100644 --- a/users-api.js +++ b/users-api.js @@ -388,7 +388,7 @@ module.exports = function (app, wss, pool) { const shopId = response.data.shopId; if (!shopList[shopId]) shopList[shopId] = []; shopList[shopId].push({ name: item.id, _requestCount: item.quantity }); - total += price * item.quantity; + total += price * (item.quantity / item.sellQuantity); } // Send via WebSocket