Merge branch 'rel-1.2.2-exam-update-fix' into dev-1.2
This commit is contained in:
commit
299769bcb6
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ class ExamSessionControlTask implements DisposableBean {
|
|||
.getOrThrow()
|
||||
.stream()
|
||||
.filter(exam -> exam.startTime.minus(this.examTimePrefix).isBefore(now))
|
||||
.filter(exam -> exam.endTime != null && exam.endTime.plus(this.examTimeSuffix).isAfter(now))
|
||||
.flatMap(exam -> Result.skipOnError(this.examUpdateHandler.setRunning(exam, updateId)))
|
||||
.collect(Collectors.toMap(Exam::getId, Exam::getName));
|
||||
|
||||
|
|
Loading…
Reference in a new issue