Fix bug in mutation
This commit is contained in:
parent
bb54aeb145
commit
be18b2c4c7
|
|
@ -127,23 +127,21 @@
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const {mutate: updateLastModuleLevel} = useMutation(gql `
|
||||||
function updateLastModuleLevelUser(moduleLevel: Object) {
|
mutation ($input: UpdateLastModuleLevelInput!){
|
||||||
|
updateLastModuleLevel(input: $input) {
|
||||||
const {mutate: updateLastModuleLevel} = useMutation(gql `
|
clientMutationId
|
||||||
mutation ($input: UpdateLastModuleLevelInput!){
|
user {
|
||||||
updateLastModuleLevel(input: $input) {
|
username
|
||||||
clientMutationId
|
lastModuleLevel {
|
||||||
user {
|
name
|
||||||
username
|
id
|
||||||
lastModuleLevel {
|
|
||||||
name
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}`);
|
}
|
||||||
|
}
|
||||||
|
}`);
|
||||||
|
|
||||||
|
const updateLastModuleLevelUser = (moduleLevel: Object) => {
|
||||||
updateLastModuleLevel({
|
updateLastModuleLevel({
|
||||||
input: {
|
input: {
|
||||||
id: moduleLevel.id,
|
id: moduleLevel.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue