Change returned JSON structure
This commit is contained in:
parent
59dd805b6d
commit
45aed9a8ec
2
hosts.js
2
hosts.js
@ -22,7 +22,7 @@ async function Request() {
|
|||||||
for (const element of hostIDs) {
|
for (const element of hostIDs) {
|
||||||
var obj = {
|
var obj = {
|
||||||
id: element,
|
id: element,
|
||||||
isConnected: await isConnected(element),
|
[element]: await isConnected(element),
|
||||||
};
|
};
|
||||||
hosts.push(obj);
|
hosts.push(obj);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user