mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix erase sync
This commit is contained in:
		@@ -73,7 +73,6 @@ function updateNormalEntity(remoteEC, remoteEntityRow, instanceId, updateContext
 | 
				
			|||||||
            if (localEC?.isErased) {
 | 
					            if (localEC?.isErased) {
 | 
				
			||||||
                eraseEntity(remoteEC); // make sure it's erased anyway
 | 
					                eraseEntity(remoteEC); // make sure it's erased anyway
 | 
				
			||||||
                updateContext.alreadyErased++;
 | 
					                updateContext.alreadyErased++;
 | 
				
			||||||
                return false; // we won't save entitychange in this case
 | 
					 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                eraseEntity(remoteEC);
 | 
					                eraseEntity(remoteEC);
 | 
				
			||||||
                updateContext.erased++;
 | 
					                updateContext.erased++;
 | 
				
			||||||
@@ -91,7 +90,8 @@ function updateNormalEntity(remoteEC, remoteEntityRow, instanceId, updateContext
 | 
				
			|||||||
            updateContext.updated[remoteEC.entityName].push(remoteEC.entityId);
 | 
					            updateContext.updated[remoteEC.entityName].push(remoteEC.entityId);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!localEC || localEC.utcDateChanged < remoteEC.utcDateChanged
 | 
					        if (!localEC
 | 
				
			||||||
 | 
					            || localEC.utcDateChanged < remoteEC.utcDateChanged
 | 
				
			||||||
            || localEC.hash !== remoteEC.hash
 | 
					            || localEC.hash !== remoteEC.hash
 | 
				
			||||||
            || localEC.isErased !== remoteEC.isErased
 | 
					            || localEC.isErased !== remoteEC.isErased
 | 
				
			||||||
        ) {
 | 
					        ) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user