mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Fix until parameterr for scores
This commit is contained in:
parent
8b103d3a05
commit
c741d87348
@ -1189,7 +1189,7 @@ const getScoreAtMonthYear = async function (month, year) {
|
|||||||
const startTime = parseInt(Date.parse(fromString) / 1000);
|
const startTime = parseInt(Date.parse(fromString) / 1000);
|
||||||
const endTime = parseInt(Date.parse(endString) / 1000)
|
const endTime = parseInt(Date.parse(endString) / 1000)
|
||||||
// Else get it and cache it
|
// Else get it and cache it
|
||||||
const url = "https://leaderboard-serverless.vercel.app/api/aggregated_stats?since=" + startTime + "&to=" + endTime;
|
const url = "https://leaderboard-serverless.vercel.app/api/aggregated_stats?since=" + startTime + "&until=" + endTime;
|
||||||
await https.get(url, (res) => {
|
await https.get(url, (res) => {
|
||||||
let body = "";
|
let body = "";
|
||||||
res.on("data", (chunk) => {
|
res.on("data", (chunk) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user