mirror of
https://github.com/docmost/docmost
synced 2025-03-28 21:13:28 +00:00
fix: add spaceId
This commit is contained in:
parent
a37d558bac
commit
a25cf84671
@ -166,7 +166,7 @@ export class PageRepo {
|
|||||||
.withRecursive('page_hierarchy', (db) =>
|
.withRecursive('page_hierarchy', (db) =>
|
||||||
db
|
db
|
||||||
.selectFrom('pages')
|
.selectFrom('pages')
|
||||||
.select(['id', 'slugId', 'title', 'icon', 'content', 'parentPageId'])
|
.select(['id', 'slugId', 'title', 'icon', 'content', 'parentPageId', 'spaceId'])
|
||||||
.where('id', '=', parentPageId)
|
.where('id', '=', parentPageId)
|
||||||
.unionAll((exp) =>
|
.unionAll((exp) =>
|
||||||
exp
|
exp
|
||||||
@ -178,6 +178,7 @@ export class PageRepo {
|
|||||||
'p.icon',
|
'p.icon',
|
||||||
'p.content',
|
'p.content',
|
||||||
'p.parentPageId',
|
'p.parentPageId',
|
||||||
|
'p.spaceId',
|
||||||
])
|
])
|
||||||
.innerJoin('page_hierarchy as ph', 'p.parentPageId', 'ph.id'),
|
.innerJoin('page_hierarchy as ph', 'p.parentPageId', 'ph.id'),
|
||||||
),
|
),
|
||||||
|
@ -115,6 +115,7 @@ export class ExportService {
|
|||||||
'pages.title',
|
'pages.title',
|
||||||
'pages.content',
|
'pages.content',
|
||||||
'pages.parentPageId',
|
'pages.parentPageId',
|
||||||
|
'pages.spaceId'
|
||||||
])
|
])
|
||||||
.where('spaceId', '=', spaceId)
|
.where('spaceId', '=', spaceId)
|
||||||
.execute();
|
.execute();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user