mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix partial syncs
This commit is contained in:
		| @@ -1,5 +1,4 @@ | ||||
| const sql = require('./sql'); | ||||
| const repository = require('./repository'); | ||||
| const sourceIdService = require('./source_id'); | ||||
| const dateUtils = require('./date_utils'); | ||||
| const log = require('./log'); | ||||
| @@ -39,6 +38,7 @@ function moveEntityChangeToTop(entityName, entityId) { | ||||
|  | ||||
| function addEntityChangesForSector(entityName, entityPrimaryKey, sector) { | ||||
|     const startTime = Date.now(); | ||||
|     const repository = require('./repository'); | ||||
|  | ||||
|     sql.transactional(() => { | ||||
|         const entityIds = sql.getColumn(`SELECT ${entityPrimaryKey} FROM ${entityName} WHERE SUBSTR(${entityPrimaryKey}, 1, 1) = ?`, [sector]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user