From 7e223752607c7edc05bf65f22b57117d48dacd49 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 26 Jan 2023 16:19:08 +0100 Subject: [PATCH] fixed inverse logic misstake --- .../servicelayer/dao/impl/ExamConfigurationMapDAOImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamConfigurationMapDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamConfigurationMapDAOImpl.java index 0c909ee6..42a59c68 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamConfigurationMapDAOImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ExamConfigurationMapDAOImpl.java @@ -389,7 +389,7 @@ public class ExamConfigurationMapDAOImpl implements ExamConfigurationMapDAO { .build() .execute() .stream() - .filter(rec -> !isExamActive(rec.getExamId())) + .filter(rec -> isExamActive(rec.getExamId())) .findFirst() .isPresent()); }