Skip to content

Commit 6778b74

Browse files
authored
fix: update subscription id in the database when changing billing parameters (#2162)
1 parent 2a8a3fe commit 6778b74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/dinosaur/pkg/services/dinosaur.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,7 @@ func (k *dinosaurService) ChangeBillingParameters(ctx context.Context, centralID
11291129
return svcErr
11301130
}
11311131
updated.subscriptionID = newSubscriptionID
1132+
centralRequest.SubscriptionID = newSubscriptionID
11321133

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

0 commit comments

Comments
 (0)