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

@@ -22,7 +22,7 @@ import (
// - If multiple lines somehow shared the same Id (should not happen), only
// the first match would be removed—data integrity relies on unique line Ids.
func RemoveItem(g *CartGrain, m *messages.RemoveItem) error {
func (c *CartMutationContext) RemoveItem(g *CartGrain, m *messages.RemoveItem) error {
if m == nil {
return fmt.Errorf("RemoveItem: nil payload")
}