mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix filling sync table after demo document import
This commit is contained in:
parent
749791f6d1
commit
5a5ea4f474
@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user