fixed error for getting exams on invalid LMS Setup
This commit is contained in:
parent
9941d57d44
commit
7ad3dc77b5
1 changed files with 9 additions and 3 deletions
|
@ -756,9 +756,15 @@ public class ExamDAOImpl implements ExamDAO {
|
||||||
return lmsSetupToRecordMapping
|
return lmsSetupToRecordMapping
|
||||||
.entrySet()
|
.entrySet()
|
||||||
.stream()
|
.stream()
|
||||||
.flatMap(entry -> toDomainModel(entry.getKey(), entry.getValue(), cached)
|
.flatMap(entry -> toDomainModel(
|
||||||
.getOrThrow()
|
entry.getKey(),
|
||||||
.stream())
|
entry.getValue(),
|
||||||
|
cached)
|
||||||
|
.onError(error -> log.error(
|
||||||
|
"Failed to get quizzes form LMS Setup: {}",
|
||||||
|
entry.getKey(), error))
|
||||||
|
.getOr(Collections.emptyList())
|
||||||
|
.stream())
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue