SEBSERV-417 removed debug code

This commit is contained in:
anhefti 2024-06-13 15:24:21 +02:00
parent 8155d155c0
commit b6e3772dcd

View file

@ -433,19 +433,7 @@ public class FullLmsIntegrationServiceImpl implements FullLmsIntegrationService
return lmsAPITemplate
.getQuiz(internalQuizId)
.onError(error -> log.error("Failed to find quiz-data for id: {}", quizId))
// this is only for debugging until Moodle Plugin is ready
.getOr(new QuizData(
MoodleUtils.getInternalQuizId(quizId, courseId, "MoodlePluginMockQuiz", null),
lmsAPITemplate.lmsSetup().institutionId,
lmsAPITemplate.lmsSetup().id,
lmsAPITemplate.lmsSetup().lmsType,
"MoodlePluginMockQuiz",
"",
DateTime.now(),
DateTime.now().plusDays(1),
"https://mockmoodle/swvgfrwef.sdvw",
null
));
.getOrThrow();
};
}