max restant
This commit is contained in:
parent
71fecd1961
commit
f636b308c0
@ -64,7 +64,7 @@ async function runImportEvents() {
|
||||
console.log('nouveaux évènements à ajouter: ', utilsTools.newEvents.length);
|
||||
let limiter = parserConfig.limit_persistence_of_new_events;
|
||||
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) => {
|
||||
let graphQLquery = pair.newQuery;
|
||||
|
Loading…
Reference in New Issue
Block a user