Fix bug in mutation

This commit is contained in:
Lorenz Padberg 2023-08-23 16:24:45 +02:00
parent bb54aeb145
commit be18b2c4c7
1 changed files with 13 additions and 15 deletions

View File

@ -127,9 +127,6 @@
return true return true
} }
function updateLastModuleLevelUser(moduleLevel: Object) {
const {mutate: updateLastModuleLevel} = useMutation(gql ` const {mutate: updateLastModuleLevel} = useMutation(gql `
mutation ($input: UpdateLastModuleLevelInput!){ mutation ($input: UpdateLastModuleLevelInput!){
updateLastModuleLevel(input: $input) { updateLastModuleLevel(input: $input) {
@ -144,6 +141,7 @@
} }
}`); }`);
const updateLastModuleLevelUser = (moduleLevel: Object) => {
updateLastModuleLevel({ updateLastModuleLevel({
input: { input: {
id: moduleLevel.id, id: moduleLevel.id,