Skip to content

Commit 3d2db84

Browse files
committed
Remove unnecessary assignmentId
1 parent 213a623 commit 3d2db84

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/de/unistuttgart/iste/meitrex/assignment_service/controller/UmlExerciseController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public UmlExercise updateTutorSolution(final UmlExerciseMutation mutation,
3838
}
3939

4040
@SchemaMapping(typeName = "UmlExerciseMutation")
41-
public UmlStudentSolution createUmlSolution(@Argument UUID assessmentId,
41+
public UmlStudentSolution createUmlSolution(final UmlExerciseMutation mutation,
4242
@Argument UUID studentId,
4343
@Argument boolean createFromPrevious) {
44-
log.info("Mutation: createUmlSolution for assessmentId={}, studentId={}", assessmentId, studentId);
45-
return umlExerciseService.createNewSolution(assessmentId, studentId, createFromPrevious);
44+
log.info("Mutation: createUmlSolution for assessmentId={}, studentId={}", mutation.getAssessmentId(), studentId);
45+
return umlExerciseService.createNewSolution(mutation.getAssessmentId(), studentId, createFromPrevious);
4646
}
4747

4848
@SchemaMapping(typeName = "UmlExerciseMutation")

src/main/resources/graphql/service/mutation.graphqls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ type UmlExerciseMutation {
108108
"""
109109
Creates a new solution attempt for a student.
110110
"""
111-
createUmlSolution(assessmentId: UUID!, studentId: UUID!, createFromPrevious: Boolean!): UmlStudentSolution!
111+
createUmlSolution(studentId: UUID!, createFromPrevious: Boolean!): UmlStudentSolution!
112112

113113
"""
114114
Saves progress or finalizes a student's solution depending on the submit flag.

0 commit comments

Comments
 (0)