SEBSERV-417 add rollback of exam import on partial import

This commit is contained in:
anhefti 2024-06-18 17:14:53 +02:00
parent 4dc8064f88
commit fbe7781be1
2 changed files with 1 additions and 2 deletions

View file

@ -315,7 +315,6 @@ public class FullLmsIntegrationServiceImpl implements FullLmsIntegrationService
.getLmsSetupIdByConnectionId(lmsUUID)
.flatMap(lmsAPITemplateCacheService::getLmsAPITemplate)
.map(template -> getQuizData(template, courseId, quizId, examData))
//.map(findQuizData(courseId, quizId))
.map(createExam(examTemplateId, quitPassword))
.map(exam -> applyExamData(exam, false))
.map(this::applyConnectionConfiguration);

View file

@ -167,7 +167,7 @@ public class SEBRestrictionServiceImpl implements SEBRestrictionService {
return this.applySEBClientRestriction(exam)
.flatMap(e -> this.examDAO.setSEBRestriction(e.id, true))
.onError(t -> log.error("Failed to update SEB Client restriction for Exam: {}", exam, t))
.getOr(exam);
.getOrThrow();
}
@Override