fix: use post instead of put (#1604)

This commit is contained in:
Max Peintner
2021-04-16 14:51:09 +02:00
committed by GitHub
parent 7131131333
commit a3abdecb33
3 changed files with 5 additions and 8 deletions
@@ -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);
}