summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.js b/server.js
index 07d9a83..9c330a2 100644
--- a/server.js
+++ b/server.js
@@ -297,6 +297,9 @@ async function crunchGlobal(force=false) {
{ offset: offset, limit: batchsize });
participations = await model.Participant.findAll({
attributes: ["api_id", "id"],
+ where: {
+ id: { $gt: last_crunch_participant_id.value }
+ },
limit: batchsize,
offset: offset,
order: [ ["id", "ASC"] ]