This commit is contained in:
Paolo Arena
2021-01-18 00:48:17 +01:00
parent 142380e54b
commit 5493953b58
22 changed files with 9749 additions and 231 deletions

2
src/server/modules/Cart.js Normal file → Executable file
View File

@@ -1,3 +1,4 @@
const shared_consts = require('../tools/shared_nodejs');
const cartModel = require('../models/cart')
const { ObjectID } = require('mongodb');
@@ -76,6 +77,7 @@ class Cart {
totalQty: this.totalQty,
totalPrice: this.totalPrice,
userId: this.userId,
note: this.note,
modify_at: this.modify_at
})
return newCart