Files
outline/server/models
codegen-sh[bot] caaff1c3d6 Add order parameter to addDocumentToStructure function (#9342)
* 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>
2025-05-30 20:45:11 -04:00
..
2025-05-03 19:40:18 -04:00
2024-05-24 05:29:00 -07:00
2025-05-03 19:40:18 -04:00
2025-03-29 06:08:07 -07:00
2025-03-29 06:08:07 -07:00
2025-05-03 19:40:18 -04:00
2024-01-12 22:33:05 +05:30
2024-01-12 22:33:05 +05:30
2024-01-12 22:33:05 +05:30