Skip to content

Commit 81ddfa7

Browse files
committed
OD-19438 fix: enrolments filter in aql
1 parent b0739b6 commit 81ddfa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/groovy/ish/oncourse/server/api/v1/function/EnrolmentFunctions.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class EnrolmentFunctions {
9393

9494

9595
static List<Long> filterEnrolmentsWithCompletedClasses(List<Enrolment> enrolments){
96-
return enrolments.findAll {e -> e.attendances.findAll {it.attendanceType = AttendanceType.ATTENDED }.size() >= e.courseClass.minimumSessionsToComplete}
96+
return enrolments.findAll {e -> e.attendances.findAll {it.attendanceType == AttendanceType.ATTENDED }.size() >= e.courseClass.minimumSessionsToComplete}
9797
.collect {it.id}
9898
}
9999
}

0 commit comments

Comments
 (0)