Subscription's videos are now stripped from HTTP requests where they are not needed

This commit is contained in:
Isaac Abadi
2021-01-20 08:37:14 -05:00
parent b8cab673ae
commit 00a0ab460b

View File

@@ -357,10 +357,12 @@ export class PostsService implements CanActivate {
}
updateSubscription(subscription) {
delete subscription['videos'];
return this.http.post(this.path + 'updateSubscription', {subscription: subscription}, this.httpOptions);
}
unsubscribe(sub, deleteMode = false) {
delete sub['videos'];
return this.http.post(this.path + 'unsubscribe', {sub: sub, deleteMode: deleteMode}, this.httpOptions)
}