wip rm sessionid of cartitem after order creation
This commit is contained in:
@@ -480,6 +480,11 @@ func (rc *cartItemController) OrderHandler(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
for idx := range order.CartItems {
|
||||
order.CartItems[idx].SessionId = "0"
|
||||
repositories.CartItems.Update(order.CartItems[idx])
|
||||
}
|
||||
|
||||
_, err = repositories.Orders.Update(order)
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user