diff --git a/routes/acl.js b/routes/acl.js index f2645b8..2d7c2d4 100644 --- a/routes/acl.js +++ b/routes/acl.js @@ -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);