allow own ids
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
||||
BuildAndDeployArm64:
|
||||
runs-on: arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build arm64 image
|
||||
run: |
|
||||
docker build \
|
||||
|
||||
@@ -39,7 +39,15 @@ func UpsertSubscriptionDetails(g *CartGrain, m *messages.UpsertSubscriptionDetai
|
||||
// Update existing entry.
|
||||
existing, ok := g.SubscriptionDetails[*m.Id]
|
||||
if !ok {
|
||||
return fmt.Errorf("subscription details not found")
|
||||
n := &SubscriptionDetails{
|
||||
Id: *m.Id,
|
||||
Version: 1,
|
||||
OfferingCode: m.OfferingCode,
|
||||
SigningType: m.SigningType,
|
||||
Meta: json.RawMessage(metaBytes),
|
||||
}
|
||||
g.SubscriptionDetails[*m.Id] = n
|
||||
existing = n
|
||||
}
|
||||
changed := false
|
||||
if m.OfferingCode != "" {
|
||||
|
||||
Reference in New Issue
Block a user