From 0ed5b9bae0cc9d2aee8673aa6790452b3df87bd2 Mon Sep 17 00:00:00 2001 From: Marc Hyeler Date: Tue, 13 Aug 2024 10:52:47 -0700 Subject: [PATCH] fix bug in count available lockers --- controllers/admin/adminData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/adminData.js b/controllers/admin/adminData.js index afe246d..431de4c 100644 --- a/controllers/admin/adminData.js +++ b/controllers/admin/adminData.js @@ -271,7 +271,7 @@ export async function queryAvailableLockersCount() { } } - let levelCounts = {}; + let levelCounts = []; for (let level of levels) { let postLockerArr = await Locker.findAll({ where: {