mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix note ordering sync
This commit is contained in:
		
							parent
							
								
									66cee8daa4
								
							
						
					
					
						commit
						d57057ba28
					
				@ -101,7 +101,7 @@ async function pullSync(syncContext) {
 | 
			
		||||
            log.info(`Skipping pull #${sync.id} ${sync.entityName} ${sync.entityId} because ${sync.sourceId} is a local source id.`);
 | 
			
		||||
        }
 | 
			
		||||
        else {
 | 
			
		||||
            await syncUpdateService.updateEntity(sync.entityName, entity, syncContext.sourceId);
 | 
			
		||||
            await syncUpdateService.updateEntity(sync, entity, syncContext.sourceId);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        await setLastSyncedPull(sync.id);
 | 
			
		||||
 | 
			
		||||
@ -37,7 +37,7 @@ async function updateEntity(sync, entity, sourceId) {
 | 
			
		||||
        await updateApiToken(entity, sourceId);
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
        throw new Error(`Unrecognized entity type ${entityName}`);
 | 
			
		||||
        throw new Error(`Unrecognized entity type ${sync}`);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user