mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
* Add order parameter to addDocumentToStructure function - Add 'order' parameter with 'prepend' | 'append' options to Collection.addDocumentToStructure - Update import logic to use 'append' order to preserve document sorting during import - Fixes issue where exported documents lose their sorting when re-imported - Maintains backward compatibility by defaulting to append behavior Fixes #7532 * Fix TypeScript error: rename order parameter to insertOrder The 'order' parameter in addDocumentToStructure was conflicting with Sequelize's FindOptions.order property, causing a type intersection error. Renamed it to 'insertOrder' to avoid the conflict. Fixes TypeScript compilation errors in: - server/queues/processors/ImportsProcessor.ts - server/queues/tasks/ImportTask.ts --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>