User cannot change their role

This commit is contained in:
narendra chandra 2021-02-06 17:34:17 -05:00
parent 4920a902c4
commit ce23692922

View File

@ -202,6 +202,7 @@ export default {
this.$apollo this.$apollo
.mutate({ .mutate({
mutation: updateUserRole(newRole, id), mutation: updateUserRole(newRole, id),
variables: { role: newRole, id}
}) })
.catch((error) => { .catch((error) => {
console.log(error.message); console.log(error.message);