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 0cabd41 commit 76d22cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/app/appData.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ export async function queryAvailableLockers() {
}
}

console.log(levels)

let finalLevels = [];
for (let level in levels) {
let postLockerArr = await Locker.findAll({
Expand Down Expand Up @@ -170,6 +172,7 @@ export async function queryAvailableLockers() {
}
}

console.log(finalLevels)
floorCounts[floor] = {
"Levels": finalLevels,
};
Expand Down

0 comments on commit 76d22cf

Please sign in to comment.