add stuff
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m52s

This commit is contained in:
matst80
2024-11-10 22:46:52 +01:00
parent e8643b5899
commit bc6c3ee692
3 changed files with 47 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) ([]byte, erro
Price: msg.Price,
Image: msg.Image,
})
c.TotalPrice += msg.Price
c.TotalPrice += msg.Price * int64(msg.Quantity)
}
case RemoveItemType:
//msg, ok := message.Content.(*messages.RemoveItem)