summaryrefslogtreecommitdiff
path: root/service_grab.js
diff options
context:
space:
mode:
Diffstat (limited to 'service_grab.js')
-rw-r--r--service_grab.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/service_grab.js b/service_grab.js
index 2d7d47c..cca8f30 100644
--- a/service_grab.js
+++ b/service_grab.js
@@ -187,6 +187,7 @@ module.exports = class Analyzer extends Service {
"sort": "createdAt"
}
}, now = new Date();
+ now.setMinutes(now.getMinutes() - 1); // TODO API hotfix, server time sync issue
logger.info("requesting triple player grab", {
names: names, region: region, category: category
});
@@ -203,6 +204,7 @@ module.exports = class Analyzer extends Service {
async grabMatches(region, lmcd) {
if (lmcd == undefined) lmcd = new Date(Date.parse(this.getGrabstart("tournament")));
const now = new Date();
+ now.setMinutes(now.getMinutes() - 1); // TODO API hotfix, server time sync issue
// add 1s, because createdAt-start <= x <= createdAt-end
// so without the +1s, we'd always get the last_match_created_date match back