SEBSERV-417 try fix corrupt Moodle data

This commit is contained in:
anhefti 2024-06-12 08:51:07 +02:00
parent 6a81b3f717
commit 7a3e3a2492

View file

@ -734,7 +734,7 @@ public class ExamAdministrationController extends EntityController<Exam, Exam> {
.flatMap(this.sebRestrictionService::applySEBClientRestriction)
// TODO temporary try to fix corrupted data on Moodle site
.onErrorDo(error -> {
if (error.getMessage().contains("error/SEB Server")) {
if (error.getMessage().contains("no SebServer Info!")) {
log.info("**** try to reset exam_data on Moodle 2.0 with temporary hack... ");
fullLmsIntegrationService.applyExamDataToLMS(exam)
.onError(e -> log.error("Failed to apply exam data: ", error));