if (req.boundParams.exercise?.assignmentName!=req.boundParams.assignment?.name){
if (req.boundParams.exercise?.assignmentName!=req.boundParams.assignment?.name){
returnreq.session.sendResponse(res,StatusCodes.BAD_REQUEST,undefined,'The exercise does not belong to the assignment',DojoStatusCode.ASSIGNMENT_EXERCISE_NOT_RELATED);
returnreq.session.sendResponse(res,StatusCodes.BAD_REQUEST,undefined,'The exercise does not belong to the assignment',DojoStatusCode.ASSIGNMENT_EXERCISE_NOT_RELATED);
...
@@ -221,6 +221,10 @@ class AssignmentRoutes implements RoutesManager {
...
@@ -221,6 +221,10 @@ class AssignmentRoutes implements RoutesManager {