Subscriptions are now reloaded on subscribe/unsubscribe in PostsService

This commit is contained in:
Tzahi12345
2020-08-24 05:11:56 -04:00
parent d7f04fc90a
commit aa0558b770
3 changed files with 9 additions and 3 deletions

View File

@@ -458,6 +458,12 @@ export class PostsService implements CanActivate {
this.config_reloaded.next(true);
}
reloadSubscriptions() {
this.getAllSubscriptions().subscribe(res => {
this.subscriptions = res['subscriptions'];
});
}
adminExists() {
return this.http.post(this.path + 'auth/adminExists', {}, this.httpOptions);
}