mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix filling sync table after demo document import
This commit is contained in:
		| @@ -199,7 +199,7 @@ class TreeCache { | |||||||
|     getNotesFromCache(noteIds, silentNotFoundError = false) { |     getNotesFromCache(noteIds, silentNotFoundError = false) { | ||||||
|         return noteIds.map(noteId => { |         return noteIds.map(noteId => { | ||||||
|             if (!this.notes[noteId] && !silentNotFoundError) { |             if (!this.notes[noteId] && !silentNotFoundError) { | ||||||
|                 console.log(`Can't find note "${noteId}"`); |                 console.trace(`Can't find note "${noteId}"`); | ||||||
|  |  | ||||||
|                 return null; |                 return null; | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -83,7 +83,7 @@ function fillSyncRows(entityName, entityPrimaryKey, condition = '') { | |||||||
|                     entityId: entityId, |                     entityId: entityId, | ||||||
|                     sourceId: "SYNC_FILL", |                     sourceId: "SYNC_FILL", | ||||||
|                     utcSyncDate: dateUtils.utcNowDateTime(), |                     utcSyncDate: dateUtils.utcNowDateTime(), | ||||||
|                     isSynced: true |                     isSynced: 1 | ||||||
|                 }); |                 }); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user