mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -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;
|
||||
});
|
||||
|
||||
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 = {
|
||||
|
||||
Reference in New Issue
Block a user