mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
await call that creates Customer in case we're upgrading from free (#16999)
This commit is contained in:
@@ -842,10 +842,9 @@ export class ChangePlanDialogComponent implements OnInit, OnDestroy {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const subscriber: BitwardenSubscriber = { type: "organization", data: this.organization };
|
const subscriber: BitwardenSubscriber = { type: "organization", data: this.organization };
|
||||||
await Promise.all([
|
// These need to be synchronous so one of them can create the Customer in the case we're upgrading from Free.
|
||||||
this.subscriberBillingClient.updatePaymentMethod(subscriber, paymentMethod, null),
|
await this.subscriberBillingClient.updateBillingAddress(subscriber, billingAddress);
|
||||||
this.subscriberBillingClient.updateBillingAddress(subscriber, billingAddress),
|
await this.subscriberBillingClient.updatePaymentMethod(subscriber, paymentMethod, null);
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backfill pub/priv key if necessary
|
// Backfill pub/priv key if necessary
|
||||||
|
|||||||
Reference in New Issue
Block a user