This commit is contained in:
Christopher Cookman 2025-09-01 00:47:57 -06:00
parent ad0c3c6e09
commit 5139c26127

View file

@ -19,7 +19,7 @@ router.get('/', async (req, res) => {
});
router.get('/add', (req, res) => { // Render form to add new ACL entry
const dbData = db.query('PRAGMA table_info(ACL)').then(columns => {
db.query('SHOW COLUMNS FROM ACL').then(columns => {
const doorList = {};
columns.forEach(col => {
if (col.name !== 'Name' && col.name !== 'CardNumber' && col.name !== 'PIN' && col.name !== 'StartDate' && col.name !== 'EndDate') {