diff --git a/src/app/posts.services.ts b/src/app/posts.services.ts index f458494..6657f00 100644 --- a/src/app/posts.services.ts +++ b/src/app/posts.services.ts @@ -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) }