Merge branch 'main' into confluence-importer

This commit is contained in:
Philipinho
2026-08-10 18:10:54 +01:00
40 changed files with 1030 additions and 855 deletions
@@ -810,6 +810,10 @@ export class PageService {
throw new BadRequestException('Invalid move position');
}
if (dto.parentPageId && dto.parentPageId === dto.pageId) {
throw new BadRequestException('A page cannot be its own parent');
}
let parentPageId = null;
if (movedPage.parentPageId === dto.parentPageId) {
parentPageId = undefined;