mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 02:35:09 +02:00
fixi res.send for expires test scores
This commit is contained in:
parent
1bb86ce587
commit
7e68fe45ed
@ -2578,12 +2578,12 @@ apiRouter.post("/getOrchestratorScores", async (req, res) => {
|
||||
const url = "https://leaderboard-serverless.vercel.app/api/aggregated_stats?since=" + startTime + "&until=" + endTime;
|
||||
console.log("Getting new Orchestrator scores for " + year + "-" + month + " @ " + url);
|
||||
|
||||
https.get(url, (res) => {
|
||||
https.get(url, (res2) => {
|
||||
let body = "";
|
||||
res.on("data", (chunk) => {
|
||||
res2.on("data", (chunk) => {
|
||||
body += chunk;
|
||||
});
|
||||
res.on("end", () => {
|
||||
res2.on("end", () => {
|
||||
try {
|
||||
const data = JSON.parse(body);
|
||||
const scoreObj = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user