diff --git a/db/migrations/0071__fix_sync_entity_names.sql b/db/migrations/0071__fix_sync_entity_names.sql index ac09c20d6..a165625d7 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 8dac71f06..e9e516d20 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 };