Some robustness if no changes have to be made anymore

This commit is contained in:
pietervdvn 2022-06-08 01:27:21 +02:00
parent 5c3665fd9d
commit aee161d456

View file

@ -222,6 +222,11 @@ export class Changes {
}
console.log("Got the fresh objects!", osmObjects, "pending: ", pending)
if(pending.length == 0){
console.log("No pending changes...")
return true;
}
const perType = Array.from(
Utils.Hist(pending.filter(descr => descr.meta.changeType !== undefined && descr.meta.changeType !== null)
.map(descr => descr.meta.changeType)), ([key, count]) => (