fix for crash

This commit is contained in:
Luke Berndt
2025-12-13 22:44:30 -05:00
parent 86b1f6383d
commit 0024b711ea

View File

@@ -153,6 +153,11 @@ exports.get_system_status = async function (req, res) {
return element.shortName == shortName;
});
if (!system) {
res.status(404);
res.send("System not found");
return;
}
var now_string = new Date().toLocaleString();
var last_active_string = new Date(system.lastActive).toLocaleString();
var response = {