mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Use new follow mutation
This commit is contained in:
parent
c40f6521d1
commit
dc13467294
@ -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(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user