Skip to content
Snippets Groups Projects
Commit 4909eb17 authored by michael.minelli's avatar michael.minelli
Browse files

AssignmentRoutes => addUpdateCorrection bug fix: Take the exercise last commit...

AssignmentRoutes => addUpdateCorrection bug fix: Take the exercise last commit instead of the assignment last commit
parent cffcab02
No related branches found
No related tags found
No related merge requests found
Pipeline #29632 passed
......@@ -219,7 +219,7 @@ class AssignmentRoutes implements RoutesManager {
return req.session.sendResponse(res, StatusCodes.BAD_REQUEST, undefined, 'This exercise is not a correction', DojoStatusCode.EXERCISE_CORRECTION_NOT_EXIST);
}
const lastCommit = await GitlabManager.getRepositoryLastCommit(req.boundParams.assignment!.gitlabId);
const lastCommit = await GitlabManager.getRepositoryLastCommit(req.boundParams.exercise!.gitlabId);
if ( lastCommit ) {
await db.exercise.update({
where: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment