mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 18:36:55 +00:00
fix(hub): health monitor reads nested health-batch .modules (ref #628)
This commit is contained in:
parent
2a8c1b33de
commit
5763aa3a73
|
|
@ -65,8 +65,10 @@
|
|||
|
||||
async function load() {
|
||||
try {
|
||||
const modules = await getJSON(BATCH);
|
||||
render(modules || {});
|
||||
const batch = await getJSON(BATCH);
|
||||
// health-batch returns {modules: {id: {status,msg}}, count: N}
|
||||
const modules = (batch && batch.modules) || batch || {};
|
||||
render(modules);
|
||||
$('updated').textContent = 'updated ' + new Date().toLocaleTimeString();
|
||||
$('loading').hidden = true; $('error').hidden = true; $('content').hidden = false;
|
||||
getJSON(INFO).then((i) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user