Test
This commit is contained in:
parent
b9dcef1616
commit
0c60a3f020
|
@ -151,7 +151,7 @@
|
|||
const EndDate = tr.querySelectorAll('input[type="date"]')[1].value;
|
||||
const Doors = [];
|
||||
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({
|
||||
CardNumber,
|
||||
|
@ -165,7 +165,7 @@
|
|||
fetch('/acl/bulk-add', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ credentials, debugData: Doors })
|
||||
body: JSON.stringify({ credentials, debugData: })
|
||||
}).then(res => {
|
||||
if (res.ok) {
|
||||
location.reload();
|
||||
|
|
Loading…
Reference in a new issue