From 9390318b8f2459704546b202dce3f3b3e4c569c3 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 30 Jul 2017 12:34:44 +0200 Subject: go upwards --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app.js') diff --git a/app.js b/app.js index 0a655a3..e6554b0 100644 --- a/app.js +++ b/app.js @@ -46,12 +46,12 @@ async function load(table, type, includes, filter) { // load from biggest id to 0 const last_id_r = await model.Keys.findOrCreate({ where: { type: "reaper_last_id_fetched", key: type }, - defaults: { value: 2147483647 } + defaults: { value: 0 } }); while (true) { const last_id = last_id_r[0].value, condition = Object.assign({}, filter, - { id: { $lt: last_id } }); + { id: { $gt: last_id } }); logger.info("loading", { type, last_id }); -- cgit v1.3.1