Skip to content

Build your personal knowledge base with Trilium Notes

sync fixes

azivner3f7b54425d14
diff --git a/db/migrations/0071__fix_sync_entity_names.sql b/db/migrations/0071__fix_sync_entity_names.sql
index ac09c20d6b..a165625d78 100644
--- a/db/migrations/0071__fix_sync_entity_names.sql
+++ b/db/migrations/0071__fix_sync_entity_names.sql
@@ -1,3 +1,4 @@
UPDATE sync SET entityName = 'note_images' WHERE entityName = 'notes_image';
UPDATE sync SET entityName = 'note_tree' WHERE entityName = 'notes_tree';
-UPDATE sync SET entityName = 'note_revisions' WHERE entityName = 'notes_history';
\ No newline at end of file
+UPDATE sync SET entityName = 'note_revisions' WHERE entityName = 'notes_history';
+UPDATE sync SET entityName = 'note_reordering' WHERE entityName = 'notes_reordering';
\ No newline at end of file
diff --git a/src/services/sync.js b/src/services/sync.js
index 8dac71f061..e9e516d20a 100644
--- a/src/services/sync.js
+++ b/src/services/sync.js
@@ -245,7 +245,7 @@ async function pushEntity(sync, syncContext) {
log.info(`Pushing changes in sync #${sync.id} ${sync.entityName} ${sync.entityId}`);
const payload = {
- sourceId: sourceId.getCurrentSourceId(),
+ sourceId: source_id.getCurrentSourceId(),
entity: entity
};