Remove spammy messages

This commit is contained in:
Pieter Vander Vennet 2024-08-09 14:44:05 +02:00
parent 0d33469ab6
commit 7796bcc581

View file

@ -587,6 +587,7 @@ export class Changes {
if (matchFound) { if (matchFound) {
toUpload.push(c) toUpload.push(c)
} else { } else {
console.log("Refusing change about "+c.type+"/"+ c.id+" as not in the objects. No internet?")
refused.push(c) refused.push(c)
} }
}) })
@ -708,6 +709,9 @@ export class Changes {
let { toUpload, refused } = this.fragmentChanges(pending, objects) let { toUpload, refused } = this.fragmentChanges(pending, objects)
if(toUpload.length === 0){
return refused
}
await this._changesetHandler.UploadChangeset( await this._changesetHandler.UploadChangeset(
(csId, remappings) => { (csId, remappings) => {
if (remappings.size > 0) { if (remappings.size > 0) {