From c1ab348f4bb973219133ca176aba9f6fd7b90410 Mon Sep 17 00:00:00 2001 From: Ole Vester Date: Tue, 17 Dec 2024 20:55:42 +0100 Subject: [PATCH] fix missing call to TextSubmissionApi#saveTextSubmission --- .../de/tum/cit/aet/artemis/exam/service/StudentExamService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/tum/cit/aet/artemis/exam/service/StudentExamService.java b/src/main/java/de/tum/cit/aet/artemis/exam/service/StudentExamService.java index 5dfd90e72c04..b23b9834729a 100644 --- a/src/main/java/de/tum/cit/aet/artemis/exam/service/StudentExamService.java +++ b/src/main/java/de/tum/cit/aet/artemis/exam/service/StudentExamService.java @@ -314,7 +314,7 @@ else if (submittedAnswer instanceof ShortAnswerSubmittedAnswer) { TextSubmission existingSubmissionInDatabase = (TextSubmission) existingParticipationInDatabase.findLatestSubmission().orElse(null); TextSubmission textSubmissionFromClient = (TextSubmission) submissionFromClient; if (!isContentEqualTo(existingSubmissionInDatabase, textSubmissionFromClient)) { - textSubmissionApi.orElseThrow(() -> new ApiNotPresentException(TextSubmissionApi.class, PROFILE_CORE)); + textSubmissionApi.orElseThrow(() -> new ApiNotPresentException(TextSubmissionApi.class, PROFILE_CORE)).saveTextSubmission(textSubmissionFromClient); saveSubmissionVersion(currentUser, submissionFromClient); } }