This commit is contained in:
Christopher Cookman 2025-09-01 03:01:14 -06:00
parent 833739d284
commit e22186771a

View file

@ -222,8 +222,8 @@ router.post('/bulk-add', async (req, res) => { // Process bulk add of ACL entrie
entry.StartDate || new Date(),
entry.EndDate || new Date(new Date().setFullYear(new Date().getFullYear() + 99))
];
if (Array.isArray(entry.doors)) {
for (const door of entry.doors) {
if (Array.isArray(entry.Doors)) {
for (const door of entry.Doors) {
fields.push(door);
placeholders.push('?');
values.push(1);