Moving back if statement moved during testing, setting InvalidDate at right point

This commit is contained in:
Smidy13 committed 2021-04-28 17:45:02 +12:00
1 parent 0b9af11663
commit d052098b66
1 file changed
+5 -4
@@ -93,6 +93,9 @@
if (API.rateLimit !== undefined) {
rateLimit = API.rateLimit
}
if (API.limit !== undefined) {
limit = API.limit
}
if (API.hostname !== undefined) {
hostname = API.hostname
}
@@ -106,9 +109,6 @@
}
}
}
if (API.limit !== undefined) {
limit = API.limit
}
}
}
@@ -342,12 +342,13 @@
let lastOHLCVKey = ''
let params = undefined
let previousSince
let invalidDate = false
let fromDate = new Date(since)
let lastDate = new Date()
while (true) {
let invalidDate = false
/* Reporting we are doing well */
function heartBeat(noNewInternalLoop) {
let processingDate = new Date(since)