diff --git a/apps/server/src/database/repos/page/page.repo.ts b/apps/server/src/database/repos/page/page.repo.ts index eb7f9572..a888442e 100644 --- a/apps/server/src/database/repos/page/page.repo.ts +++ b/apps/server/src/database/repos/page/page.repo.ts @@ -166,7 +166,7 @@ export class PageRepo { .withRecursive('page_hierarchy', (db) => db .selectFrom('pages') - .select(['id', 'slugId', 'title', 'icon', 'content', 'parentPageId']) + .select(['id', 'slugId', 'title', 'icon', 'content', 'parentPageId', 'spaceId']) .where('id', '=', parentPageId) .unionAll((exp) => exp @@ -178,6 +178,7 @@ export class PageRepo { 'p.icon', 'p.content', 'p.parentPageId', + 'p.spaceId', ]) .innerJoin('page_hierarchy as ph', 'p.parentPageId', 'ph.id'), ), diff --git a/apps/server/src/integrations/export/export.service.ts b/apps/server/src/integrations/export/export.service.ts index aaa7e042..c2b61a05 100644 --- a/apps/server/src/integrations/export/export.service.ts +++ b/apps/server/src/integrations/export/export.service.ts @@ -115,6 +115,7 @@ export class ExportService { 'pages.title', 'pages.content', 'pages.parentPageId', + 'pages.spaceId' ]) .where('spaceId', '=', spaceId) .execute();