Skip to content

Commit

Permalink
Updated table group capacity check
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-cai committed Apr 14, 2024
1 parent 008a102 commit d46d5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/expo/src/routes/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ projectRoutes.route("/").post(
}

// check for first free table group to assign table number to
let isFreeTableGroup = projectsInCurrentExpoAndTableGroup.length < tableGroup.tableCapacity;
const isFreeTableGroup = projectsInCurrentExpoAndTableGroup.length < tableGroup.tableCapacity;
if (isFreeTableGroup && firstFreeTableGroup === undefined) {
firstFreeTableGroup = tableGroup;
}

totalCapacity += tableGroup.capacity;
totalCapacity += tableGroup.tableCapacity;
}

// no free table could be found; all table groups' capacities are full
Expand Down

0 comments on commit d46d5a8

Please sign in to comment.