М
Size: a a a
М
М
let searchedProduct = await Product.findOne({ where: {code: code[code.length-1]}})
let cart = await searchedProduct.getCart()
cart[0].quantity += 1
console.log(cart[0].quantity)
await searchedProduct.setCart(cart)]
IB
М
IB
IB
М
getCart
setCart
IB
let searchedProduct = await Product.findOne({ where: {code: code[code.length-1]}})
let cart = await searchedProduct.getCart()
cart[0].quantity += 1
console.log(cart[0].quantity)
await searchedProduct.setCart(cart)]
М
IB
М
М
М
М
IB
М
IB
VK
VK
IB