saveGuaranteed in almost all cases except updateProfile

This commit is contained in:
2024-09-04 15:32:51 +02:00
parent d8429f9b4a
commit 3b012a8113
3 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ export class LoginComponent {
const activeSubscription = subscriptions.filter(s => s.status === 'active');
if (activeSubscription.length > 0) {
user.subscriptionPlan = activeSubscription[0].metadata['plan'] === 'Broker Plan' ? 'broker' : 'professional';
this.userService.save(user);
this.userService.saveGuaranteed(user);
} else {
this.router.navigate([`/pricing`]);
return;