This commit is contained in:
Christopher Cookman 2025-09-01 00:50:51 -06:00
parent 3af770be83
commit a09b7426b7

View file

@ -20,10 +20,10 @@ router.get('/', async (req, res) => {
router.get('/add', async (req, res) => { // Render form to add new ACL entry
doorList = {}
await db.query('SHOW COLUMNS FROM ACL').then(columns => {
await db.query('SHOW COLUMNS FROM ACL;').then(columns => {
columns.forEach(col => {
if (col.name !== 'Name' && col.name !== 'CardNumber' && col.name !== 'PIN' && col.name !== 'StartDate' && col.name !== 'EndDate') {
doorList[col.name] = false;
doorList[col.Field] = false;
}
});
console.log(doorList)