This commit is contained in:
matst80
2025-11-27 12:14:09 +01:00
parent 400079ec98
commit 51d7de03d6
7 changed files with 67 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ import (
// (If strict locking is required around every mutation, wrap logic in
// an explicit g.mu.Lock()/Unlock(), but current model mirrors prior code.)
func ChangeQuantity(g *CartGrain, m *messages.ChangeQuantity) error {
func (c *CartMutationContext) ChangeQuantity(g *CartGrain, m *messages.ChangeQuantity) error {
if m == nil {
return fmt.Errorf("ChangeQuantity: nil payload")
}