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
+2 -2
View File
@@ -64,7 +64,7 @@ func (c *CartMutationContext) AddItem(g *CartGrain, m *cart_messages.AddItem) er
if !sameStore {
continue
}
if c.UseReservations(existing) {
if g.Type == cart_messages.CartType_REGULAR && c.UseReservations(existing) {
if err := c.ReleaseItem(ctx, g.Id, existing.Sku, existing.StoreId); err != nil {
log.Printf("failed to release item %d: %v", existing.Id, err)
}
@@ -152,7 +152,7 @@ func (c *CartMutationContext) AddItem(g *CartGrain, m *cart_messages.AddItem) er
DropShip: m.DropShip,
}
if needsReservation && c.UseReservations(cartItem) {
if g.Type == cart_messages.CartType_REGULAR && needsReservation && c.UseReservations(cartItem) {
endTime, err := c.ReserveItem(ctx, g.Id, m.Sku, m.StoreId, uint16(m.Quantity))
if err != nil {
return err