From 4999a967fd11db8e5142b0a14c0c3f37283290df Mon Sep 17 00:00:00 2001 From: Mateja Date: Tue, 27 Jul 2021 18:01:45 +0200 Subject: DB: Add product name for each item in order. --- server/controllers/transaction.js | 1 + 1 file changed, 1 insertion(+) (limited to 'server') diff --git a/server/controllers/transaction.js b/server/controllers/transaction.js index 62ffd9c..9edb778 100644 --- a/server/controllers/transaction.js +++ b/server/controllers/transaction.js @@ -66,6 +66,7 @@ module.exports = { newOrderObj.items.push({ productId: itemId, + name: item.name, quantity: itemQuantity }); } -- cgit v1.2.3