From 9b492af0841553ca8255f2e214bfb4ab3c41039f Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 25 Apr 2017 18:37:29 +0200 Subject: use lpc_id, don't overwrite previous crunch --- server.js | 3 +++ 1 file changed, 3 insertions(+) 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"] ] -- cgit v1.3.1