saveGuaranteed in almost all cases except updateProfile
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user