diff --git a/server/src/service-layer/controllers/EventController.ts b/server/src/service-layer/controllers/EventController.ts index e575303e7..d753f470c 100644 --- a/server/src/service-layer/controllers/EventController.ts +++ b/server/src/service-layer/controllers/EventController.ts @@ -24,7 +24,7 @@ export class EventController extends Controller { // Check if the event is full const reservations = await eventService.getAllReservations(event_id) if ( - !!fetchedEvent.max_occupancy && + fetchedEvent.max_occupancy !== undefined && reservations.length >= fetchedEvent.max_occupancy ) { this.setStatus(400)