allow own ids
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
|||||||
BuildAndDeployArm64:
|
BuildAndDeployArm64:
|
||||||
runs-on: arm64
|
runs-on: arm64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v4
|
||||||
- name: Build arm64 image
|
- name: Build arm64 image
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
docker build \
|
||||||
|
|||||||
@@ -39,7 +39,15 @@ func UpsertSubscriptionDetails(g *CartGrain, m *messages.UpsertSubscriptionDetai
|
|||||||
// Update existing entry.
|
// Update existing entry.
|
||||||
existing, ok := g.SubscriptionDetails[*m.Id]
|
existing, ok := g.SubscriptionDetails[*m.Id]
|
||||||
if !ok {
|
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
|
changed := false
|
||||||
if m.OfferingCode != "" {
|
if m.OfferingCode != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user