aboutsummaryrefslogtreecommitdiff
path: root/server/controllers
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-27 18:01:45 +0200
committerMateja <mail@matejamaric.com>2021-07-27 18:01:45 +0200
commit4999a967fd11db8e5142b0a14c0c3f37283290df (patch)
treec83444795b9c74af61e9a4c0e332d24009837a22 /server/controllers
parent8a3923c5b9eefaaa59a081c2a77d0a225494ea45 (diff)
downloadmevn-ecommerce-4999a967fd11db8e5142b0a14c0c3f37283290df.tar.gz
mevn-ecommerce-4999a967fd11db8e5142b0a14c0c3f37283290df.zip
DB: Add product name for each item in order.
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/transaction.js1
1 files changed, 1 insertions, 0 deletions
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
});
}