mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-20 06:24:25 +00:00
fix: use post instead of put (#1604)
This commit is contained in:
@@ -90,7 +90,7 @@ export class FeaturesComponent implements OnDestroy {
|
||||
this.sub.unsubscribe();
|
||||
}
|
||||
|
||||
public updateCustomer(): void {
|
||||
public setCustomer(): void {
|
||||
const dialogRefPhone = this.dialog.open(PaymentInfoDialogComponent, {
|
||||
data: {
|
||||
customer: this.stripeCustomer,
|
||||
@@ -102,7 +102,7 @@ export class FeaturesComponent implements OnDestroy {
|
||||
if (customer) {
|
||||
console.log(customer);
|
||||
this.stripeCustomer = customer;
|
||||
this.subService.updateCustomer(this.org.id, customer).then(() => {
|
||||
this.subService.setCustomer(this.org.id, customer).then(() => {
|
||||
this.getLinkToStripe();
|
||||
}).catch(console.error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user