update
This commit is contained in:
@@ -39,12 +39,7 @@ func UpsertSubscriptionDetails(g *CartGrain, m *messages.UpsertSubscriptionDetai
|
||||
// Update existing entry.
|
||||
existing, ok := g.SubscriptionDetails[*m.Id]
|
||||
if !ok {
|
||||
n := &SubscriptionDetails{
|
||||
Id: *m.Id,
|
||||
Version: 0,
|
||||
}
|
||||
g.SubscriptionDetails[*m.Id] = n
|
||||
existing = n
|
||||
return fmt.Errorf("subscription details with id %s not found", *m.Id)
|
||||
}
|
||||
changed := false
|
||||
if m.OfferingCode != "" {
|
||||
|
||||
Reference in New Issue
Block a user