diff options
author | Mateja <mail@matejamaric.com> | 2021-07-27 18:01:45 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-07-27 18:01:45 +0200 |
commit | 4999a967fd11db8e5142b0a14c0c3f37283290df (patch) | |
tree | c83444795b9c74af61e9a4c0e332d24009837a22 /server | |
parent | 8a3923c5b9eefaaa59a081c2a77d0a225494ea45 (diff) | |
download | mevn-ecommerce-4999a967fd11db8e5142b0a14c0c3f37283290df.tar.gz mevn-ecommerce-4999a967fd11db8e5142b0a14c0c3f37283290df.zip |
DB: Add product name for each item in order.
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/transaction.js | 1 |
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 }); } |