Skip to content

Commit

Permalink
add new level available logic
Browse files Browse the repository at this point in the history
  • Loading branch information
birdpump committed Aug 12, 2024
1 parent 23bde97 commit a1bc02c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/app/appData.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export async function queryAvailableLockers() {

let finalLevels = [];
for (let level in levels) {
console.log(level)
let postLockerArr = await Locker.findAll({
where: {
"location.Building": {[Op.eq]: building},
Expand All @@ -166,7 +167,7 @@ export async function queryAvailableLockers() {
emptyLockerCount++;
}
}

console.log(emptyLockerCount);
if (emptyLockerCount === 0) {
continue;
}
Expand Down

0 comments on commit a1bc02c

Please sign in to comment.