max restant

This commit is contained in:
Tykayn 2022-01-13 15:34:01 +01:00 committed by tykayn
parent 71fecd1961
commit f636b308c0

View File

@ -64,7 +64,7 @@ async function runImportEvents() {
console.log('nouveaux évènements à ajouter: ', utilsTools.newEvents.length); console.log('nouveaux évènements à ajouter: ', utilsTools.newEvents.length);
let limiter = parserConfig.limit_persistence_of_new_events; let limiter = parserConfig.limit_persistence_of_new_events;
let counter = 0; let counter = 0;
let counter_max = parserConfig.max_new_events; let counter_max = Math.max(parserConfig.max_new_events,utilsTools.newEvents.length);
utilsTools.newEvents.forEach((pair: any) => { utilsTools.newEvents.forEach((pair: any) => {
let graphQLquery = pair.newQuery; let graphQLquery = pair.newQuery;