diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-07-18 11:50:37 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-07-18 11:50:37 +0200 |
| commit | 20cfb44d752f494cfa28d4b24da28114d303d164 (patch) | |
| tree | bdabbbacec58991d573240eb6ec268fdb24d884f | |
| parent | 4fa082da9079463715e1e8e914414db8bfc6b855 (diff) | |
| download | bridge-20cfb44d752f494cfa28d4b24da28114d303d164.tar.gz bridge-20cfb44d752f494cfa28d4b24da28114d303d164.zip | |
fix region update referring to wrong db var (3/2)
| -rw-r--r-- | service_grab.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service_grab.js b/service_grab.js index 895d8f2..0fab356 100644 --- a/service_grab.js +++ b/service_grab.js @@ -187,7 +187,7 @@ module.exports = class Analyzer extends Service { // add 1s, because createdAt-start <= x <= createdAt-end // so without the +1s, we'd always get the last_match_created_date match back - last_match_created_date.setSeconds(last_match_created_date.getSeconds() + 1); + lmcd.setSeconds(lmcd.getSeconds() + 1); const payload_template = { "region": region, @@ -195,7 +195,7 @@ module.exports = class Analyzer extends Service { }; logger.info("requesting region update", { region: region }); - await Promise.each(this.getSplitGrabs(payload_template, last_match_created_date, now), async (payload) => { + await Promise.each(this.getSplitGrabs(payload_template, lmcd, now), async (payload) => { await this.forward(GRAB_TOURNAMENT_QUEUE, JSON.stringify(payload), { persistent: true }); }); |
