wasCached out of scope

This commit is contained in:
Marco van Dijk 2022-06-25 16:35:24 +02:00
parent bad40ca0ea
commit 0980b22e55

View File

@ -2512,11 +2512,11 @@ const mutateDynamicStatsFromCache = async function (oldOrchestratorObj, newOrche
// Gets info on a given Orchestrator // Gets info on a given Orchestrator
const parseOrchestrator = async function (reqAddr) { const parseOrchestrator = async function (reqAddr) {
console.log("Getting orchestrator data from thegraph for " + reqAddr); console.log("Getting orchestrator data from thegraph for " + reqAddr);
let wasCached = false;
try { try {
reqAddr = reqAddr.toLowerCase(); reqAddr = reqAddr.toLowerCase();
const now = new Date().getTime(); const now = new Date().getTime();
// Default assume it's the first time we request this Orchestrator // Default assume it's the first time we request this Orchestrator
let wasCached = false;
let needsUpdate = true; let needsUpdate = true;
let orchestratorObj = {}; let orchestratorObj = {};
// First get cached object // First get cached object