summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-05-14 11:50:13 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-05-14 11:50:13 +0200
commitb33b4227b89c08f8b663351bd9513f4afa15a943 (patch)
tree29c2be73360705dc3fb02dfe394799cbc171fbe3
parent5051f67f651d318d007439553364cb164846935f (diff)
downloadbridge-release/2.3.1.tar.gz
bridge-release/2.3.1.zip
fix region updates not taking shard_id into accountrelease/2.3.1
-rw-r--r--server.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.js b/server.js
index 2acc89f..d93162e 100644
--- a/server.js
+++ b/server.js
@@ -271,6 +271,7 @@ async function updateRegion(region, category) {
let grabstart;
const last_match = await databaseForCategory(category).Participant.findOne({
attributes: ["created_at"],
+ where: { shard_id: region },
order: [ [seq.col("created_at"), "DESC"] ]
});
if (last_match == null) grabstart = undefined;