feature/pubsub #7

Merged
mats merged 67 commits from feature/pubsub into main 2025-11-28 17:45:22 +01:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit 4fa78e786f - Show all commits

View File

@@ -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 \

View File

@@ -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 != "" {