This commit is contained in:
Christopher Cookman 2025-09-01 02:55:33 -06:00
parent b9dcef1616
commit 0c60a3f020

View file

@ -151,7 +151,7 @@
const EndDate = tr.querySelectorAll('input[type="date"]')[1].value; const EndDate = tr.querySelectorAll('input[type="date"]')[1].value;
const Doors = []; const Doors = [];
tr.children[8].querySelectorAll('input[type="checkbox"]').forEach(cb => { tr.children[8].querySelectorAll('input[type="checkbox"]').forEach(cb => {
if (cb.checked) Doors.push(cb.name); if (cb.attributes.checked) Doors.push(cb.attributes.name);
}); });
credentials.push({ credentials.push({
CardNumber, CardNumber,
@ -165,7 +165,7 @@
fetch('/acl/bulk-add', { fetch('/acl/bulk-add', {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ credentials, debugData: Doors }) body: JSON.stringify({ credentials, debugData: })
}).then(res => { }).then(res => {
if (res.ok) { if (res.ok) {
location.reload(); location.reload();