mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
fix for crash
This commit is contained in:
@@ -153,6 +153,11 @@ exports.get_system_status = async function (req, res) {
|
|||||||
return element.shortName == shortName;
|
return element.shortName == shortName;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!system) {
|
||||||
|
res.status(404);
|
||||||
|
res.send("System not found");
|
||||||
|
return;
|
||||||
|
}
|
||||||
var now_string = new Date().toLocaleString();
|
var now_string = new Date().toLocaleString();
|
||||||
var last_active_string = new Date(system.lastActive).toLocaleString();
|
var last_active_string = new Date(system.lastActive).toLocaleString();
|
||||||
var response = {
|
var response = {
|
||||||
|
|||||||
Reference in New Issue
Block a user