diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamConfigUpdateServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamConfigUpdateServiceImpl.java index 37699fe8..5616a9ea 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamConfigUpdateServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/ExamConfigUpdateServiceImpl.java @@ -155,6 +155,8 @@ public class ExamConfigUpdateServiceImpl implements ExamConfigUpdateService { .onError(t -> log.error("Failed to update SEB Client restriction for Exam: {}", exam, t)); } this.examAdminService.updateAdditionalExamConfigAttributes(exam.id); + // notify others... + applicationEventPublisher.publishEvent(new ExamConfigUpdateEvent(exam.id)); } // evict each Exam from cache and release the update-lock on DB @@ -186,9 +188,13 @@ public class ExamConfigUpdateServiceImpl implements ExamConfigUpdateService { // if the exam is not currently running just apply the action if (exam.status != ExamStatus.RUNNING) { - return changeAction + T result = changeAction .apply(mapping) .getOrThrow(); + + // notify... + applicationEventPublisher.publishEvent(new ExamConfigUpdateEvent(exam.id)); + return result; } // if the exam is running...