Skip to content

Commit a4d9c6f

Browse files
committed
Wrong <
1 parent 08284dc commit a4d9c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/be/sgl/backend/service/event/EventRegistrationService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class EventRegistrationService : PaymentService<EventRegistration, EventRegistra
7272

7373
private fun isGlobalLimitReached(event: Event): Boolean {
7474
val globalLimit = event.registrationLimit ?: return false
75-
return paymentRepository.countPaidRegistrationsByEvent(event) < globalLimit
75+
return paymentRepository.countPaidRegistrationsByEvent(event) >= globalLimit
7676
}
7777

7878
private fun calculatePriceForEvent(event: Event, additionalData: String?): Double {

0 commit comments

Comments
 (0)