Fix error

This commit is contained in:
Ajay
2022-08-19 15:45:23 -04:00
parent 5a43f46ac0
commit 9559628273

View File

@@ -68,7 +68,7 @@ async function getAndSplit<T, U extends string>(fetchFromDB: (values: U[]) => Pr
} }
for (const key in newResults) { for (const key in newResults) {
redis.setEx(key, expiryTime, JSON.stringify(newResults[key])).catch((err) => Logger.error(err)); redis.setEx(key, config.redis?.expiryTime, JSON.stringify(newResults[key])).catch((err) => Logger.error(err));
} }
}); });
} }