Skip to content

Build your personal knowledge base with Trilium Notes

fix filling sync table after demo document import

zadam5a5ea4f4743f
diff --git a/src/public/app/services/tree_cache.js b/src/public/app/services/tree_cache.js
index 42efd0eece..9c9b9add94 100644
--- a/src/public/app/services/tree_cache.js
+++ b/src/public/app/services/tree_cache.js
@@ -199,7 +199,7 @@ class TreeCache {
getNotesFromCache(noteIds, silentNotFoundError = false) {
return noteIds.map(noteId => {
if (!this.notes[noteId] && !silentNotFoundError) {
- console.log(`Can't find note "${noteId}"`);
+ console.trace(`Can't find note "${noteId}"`);
return null;
}
diff --git a/src/services/sync_table.js b/src/services/sync_table.js
index fb91de3528..0999dee73d 100644
--- a/src/services/sync_table.js
+++ b/src/services/sync_table.js
@@ -83,7 +83,7 @@ function fillSyncRows(entityName, entityPrimaryKey, condition = '') {
entityId: entityId,
sourceId: "SYNC_FILL",
utcSyncDate: dateUtils.utcNowDateTime(),
- isSynced: true
+ isSynced: 1
});
}
}