Skip to content

Commit

Permalink
fix: update subscription id in the database when changing billing par…
Browse files Browse the repository at this point in the history
…ameters
  • Loading branch information
kovayur committed Jan 24, 2025
1 parent 4b158c4 commit a59f5e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/dinosaur/pkg/services/dinosaur.go
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,7 @@ func (k *dinosaurService) ChangeBillingParameters(ctx context.Context, centralID
return svcErr
}
updated.subscriptionID = newSubscriptionID
centralRequest.SubscriptionID = newSubscriptionID

if !reflect.DeepEqual(original, updated) {
if svcErr = k.UpdateIgnoreNils(centralRequest); svcErr != nil {
Expand Down

0 comments on commit a59f5e7

Please sign in to comment.