diff --git a/cart-grain.go b/cart-grain.go index ecd247a..6ce6c81 100644 --- a/cart-grain.go +++ b/cart-grain.go @@ -424,19 +424,16 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa } } if len(items) > 0 { - c.Deliveries = append(c.Deliveries, &CartDelivery{ - Id: c.lastDeliveryId, - Provider: msg.Provider, - Price: 49, - Items: items, + Id: c.lastDeliveryId, + Provider: msg.Provider, + PickupPoint: msg.PickupPoint, + Price: 49, + Items: items, }) - c.Processing = true + c.UpdateTotals() - go func() { - time.Sleep(5 * time.Second) - c.Processing = false - }() + } }