From dc134672944377bcbf3d8785989f79ffe4bc4fc1 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 5 Mar 2019 11:21:19 +0100 Subject: [PATCH] Use new follow mutation --- components/FollowButton.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/components/FollowButton.vue b/components/FollowButton.vue index 0e02f963f..21e51f407 100644 --- a/components/FollowButton.vue +++ b/components/FollowButton.vue @@ -33,17 +33,12 @@ export default { this.$apollo .mutate({ mutation: gql` - mutation($myId: ID!, $followId: ID!) { - AddUserFollowing(from: { id: $myId }, to: { id: $followId }) { - from { - id - } - } + mutation($id: ID!) { + follow(id: $id) } `, variables: { - myId: this.$store.getters['auth/user'].id, - followId: this.followId + id: this.followId } }) .then(() => {