Skip to content

Commit a41c437

Browse files
committed
fix exam deletion from SEB Server
1 parent 3f7c32c commit a41c437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ch/ethz/seb/sps/server/servicelayer/impl/SessionServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public boolean hasAnySessionDataForExam(final String examUUID) {
189189
System.out.println("*********************** requestDelete pk: " + pk);
190190
if (pk != null) {
191191
return this.groupDAO
192-
.allIdsForExamsIds(List.of())
192+
.allIdsForExamsIds(List.of(pk))
193193
.flatMap(sessionDAO::hasAnySessionData)
194194
.onError(error -> log.warn("Failed to check if there are any session data for Exam: {} error: {}", examUUID, error.getMessage()))
195195
.getOr(true);

0 commit comments

Comments
 (0)