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

@@ -89,9 +89,7 @@ export class AppComponent implements OnInit {
// gets the subscriptions
if (this.allowSubscriptions) {
this.postsService.getAllSubscriptions().subscribe(res => {
this.postsService.subscriptions = res['subscriptions'];
})
this.postsService.reloadSubscriptions();
}
}