update
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 38s
Build and Publish / BuildAndDeployArm64 (push) Successful in 3m46s

This commit is contained in:
2025-11-26 21:43:18 +01:00
parent afa79e7b56
commit 3912135b35

View File

@@ -42,7 +42,7 @@ func AddItem(g *CartGrain, m *messages.AddItem) error {
t := m.ReservationEndTime.AsTime()
if existing.ReservationEndTime == nil || existing.ReservationEndTime.Before(m.ReservationEndTime.AsTime()) {
existing.ReservationEndTime = &t
existing.Quantity = int(m.Quantity)
existing.Quantity += int(m.Quantity)
} else {
existing.ReservationEndTime = &t
}