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(() => {