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) ||
!Utils.isEqualsWithEmptyCheckTruncated(exam.getDescription(), quizData.description) ||
!Utils.isEqualsWithEmptyCheck(exam.getStartURL(), quizData.startURL) ||
!exam.externalId.equals(quizData.id)) {
!Objects.equals(exam.externalId, quizData.id)) {
if (!Utils.isEqualsWithEmptyCheck(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(),
quizData.startURL);
}
if (exam.externalId.equals(quizData.id)) {
if (!Objects.equals(exam.externalId, quizData.id)) {
log.info("Update quizId difference from LMS. Exam:{}, QuizData: {}",
exam.externalId,
quizData.id);