test a version
This commit is contained in:
@@ -106,7 +106,7 @@ func main() {
|
||||
_, span := tracer.Start(ctx, "Totals and promotions")
|
||||
defer span.End()
|
||||
g.UpdateTotals()
|
||||
|
||||
g.Version++
|
||||
// promotionCtx := promotions.NewContextFromCart(g, promotions.WithNow(time.Now()), promotions.WithCustomerSegment("vip"))
|
||||
// _, actions := promotionService.EvaluateAll(promotionData.State.Promotions, promotionCtx)
|
||||
// for _, action := range actions {
|
||||
|
||||
@@ -108,6 +108,7 @@ type CartGrain struct {
|
||||
lastAccess time.Time
|
||||
lastChange time.Time // unix seconds of last successful mutation (replay sets from event ts)
|
||||
userId string
|
||||
Version uint
|
||||
InventoryReserved bool `json:"inventoryReserved"`
|
||||
Id CartId `json:"id"`
|
||||
Items []*CartItem `json:"items"`
|
||||
|
||||
Reference in New Issue
Block a user