This commit is contained in:
Luke Berndt
2024-08-25 22:44:01 -04:00
parent 221ee0dd52
commit 05483a7b8b

View File

@@ -145,8 +145,8 @@ async function load_systems(systemClients) {
exports.get_systems = async function (req, res) {
if ((systemList.length == 0) || (systemListTime < (Date.now() - 60 * 1000 * 2))) {
systemListTime = Date.now(); // set this first to prevent multiple calls to load_systems
await load_systems(req.systemClients);
systemListTime = Date.now();
}
res.contentType('json');