mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
fix return cached score
This commit is contained in:
parent
6fa45acc54
commit
9cd691afae
@ -2526,7 +2526,8 @@ apiRouter.post("/getOrchestratorScores", async (req, res) => {
|
|||||||
if (thisAddr.year === year && thisAddr.month === month) {
|
if (thisAddr.year === year && thisAddr.month === month) {
|
||||||
// Check timeout
|
// Check timeout
|
||||||
if (now - thisAddr.timestamp < 360000) {
|
if (now - thisAddr.timestamp < 360000) {
|
||||||
return thisAddr;
|
res.send(thisAddr);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
wasInCache = true;
|
wasInCache = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user