Test
This commit is contained in:
parent
3af770be83
commit
a09b7426b7
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue