From 6f0ff98b5cabd3fea1ee7c16f013fa1d05725770 Mon Sep 17 00:00:00 2001 From: derouet2018 <tristan.derouet@gmail.com> Date: Wed, 17 Nov 2021 13:24:01 +0100 Subject: [PATCH] Fix the add research to queue module with the new version of lektor --- common/lkt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lkt.js b/common/lkt.js index 515a33c..c13707a 100644 --- a/common/lkt.js +++ b/common/lkt.js @@ -398,7 +398,7 @@ class LktClient { static commandQueueAddMulId(IdList) { var command; var promize = new Promise(()=>null); - var size = 4; + var size = 5; var arrayOfArrays = []; for (var i=0; i<IdList.length; i+=size) { arrayOfArrays.push(IdList.slice(i,i+size)); @@ -409,7 +409,7 @@ class LktClient { idbatch.forEach(id => { command = command + " " + id; }); - promize = promize.then(resolve => setTimeout(resolve, 200)).then(LktClient.__execSimple(command)); + promize = promize.then(resolve => setTimeout(resolve, 4000)).then(LktClient.__execSimple(command)); } }); return null; -- GitLab