fixed exam id change check
This commit is contained in:
parent
3465f5b836
commit
f8706d26d4
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue