fix return cached score

This commit is contained in:
Marco van Dijk 2022-04-22 00:00:31 +02:00
parent 6fa45acc54
commit 9cd691afae

View File

@ -2526,7 +2526,8 @@ apiRouter.post("/getOrchestratorScores", async (req, res) => {
if (thisAddr.year === year && thisAddr.month === month) {
// Check timeout
if (now - thisAddr.timestamp < 360000) {
return thisAddr;
res.send(thisAddr);
return;
}
wasInCache = true;
}