Skip to content

Commit

Permalink
fix missing call to TextSubmissionApi#saveTextSubmission
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Dec 17, 2024
1 parent 02e28b8 commit c1ab348
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit c1ab348

Please sign in to comment.