fixed exam id change check

This commit is contained in:
anhefti 2023-10-02 15:53:31 +02:00
parent 3465f5b836
commit f8706d26d4

View file

@ -357,7 +357,7 @@ class ExamUpdateHandler {
!Objects.equals(exam.endTime, quizData.endTime) || !Objects.equals(exam.endTime, quizData.endTime) ||
!Utils.isEqualsWithEmptyCheckTruncated(exam.getDescription(), quizData.description) || !Utils.isEqualsWithEmptyCheckTruncated(exam.getDescription(), quizData.description) ||
!Utils.isEqualsWithEmptyCheck(exam.getStartURL(), quizData.startURL) || !Utils.isEqualsWithEmptyCheck(exam.getStartURL(), quizData.startURL) ||
!exam.externalId.equals(quizData.id)) { !Objects.equals(exam.externalId, quizData.id)) {
if (!Utils.isEqualsWithEmptyCheck(exam.name, quizData.name)) { if (!Utils.isEqualsWithEmptyCheck(exam.name, quizData.name)) {
log.info("Update name difference from LMS. Exam: {}, QuizData: {}", exam.name, quizData.name); log.info("Update name difference from LMS. Exam: {}, QuizData: {}", exam.name, quizData.name);
@ -377,7 +377,7 @@ class ExamUpdateHandler {
exam.getStartURL(), exam.getStartURL(),
quizData.startURL); quizData.startURL);
} }
if (exam.externalId.equals(quizData.id)) { if (!Objects.equals(exam.externalId, quizData.id)) {
log.info("Update quizId difference from LMS. Exam:{}, QuizData: {}", log.info("Update quizId difference from LMS. Exam:{}, QuizData: {}",
exam.externalId, exam.externalId,
quizData.id); quizData.id);