mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 02:35:09 +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) {
|
||||
// Check timeout
|
||||
if (now - thisAddr.timestamp < 360000) {
|
||||
return thisAddr;
|
||||
res.send(thisAddr);
|
||||
return;
|
||||
}
|
||||
wasInCache = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user