Test
This commit is contained in:
parent
660a423059
commit
b9dcef1616
|
@ -152,7 +152,6 @@
|
||||||
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.checked) Doors.push(cb.name);
|
||||||
console.log(cb.name, cb.checked);
|
|
||||||
});
|
});
|
||||||
credentials.push({
|
credentials.push({
|
||||||
CardNumber,
|
CardNumber,
|
||||||
|
@ -166,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 })
|
body: JSON.stringify({ credentials, debugData: Doors })
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
location.reload();
|
location.reload();
|
||||||
|
|
Loading…
Reference in a new issue