Skip to content

Commit

Permalink
Revert check for fetchedEvent.max_occupancy
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffplays2005 committed Sep 2, 2024
1 parent b64dba2 commit c424bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/service-layer/controllers/EventController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c424bbc

Please sign in to comment.