wishlist and dashboard
Build and Publish / BuildAndDeployAmd64 (push) Failing after 4s
Build and Publish / BuildAndDeployArm64 (push) Failing after 5s

This commit is contained in:
2026-07-01 13:04:55 +02:00
parent 4a37cb479c
commit 1c97a4bdb0
16 changed files with 792 additions and 340 deletions
+6
View File
@@ -6,6 +6,7 @@ import (
"time"
"git.k6n.net/mats/go-cart-actor/pkg/voucher"
cart_messages "git.k6n.net/mats/go-cart-actor/proto/cart"
"git.k6n.net/mats/go-redis-inventory/pkg/inventory"
)
@@ -136,6 +137,7 @@ type CartGrain struct {
Language string `json:"language"`
Version uint `json:"version"`
InventoryReserved bool `json:"inventoryReserved"`
Type cart_messages.CartType `json:"type,omitempty"`
Id CartId `json:"id"`
Items []*CartItem `json:"items"`
TotalPrice *Price `json:"totalPrice"`
@@ -298,6 +300,10 @@ func (c *CartGrain) UpdateTotals() {
}
if c.Type == cart_messages.CartType_WISHLIST || c.Type == cart_messages.CartType_OFFER {
return
}
for _, voucher := range c.Vouchers {
_, ok := voucher.AppliesTo(c)
voucher.Applied = false