mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 04:21:10 +10:00
update shared page spaceId
This commit is contained in:
@ -223,6 +223,16 @@ export class PageService {
|
||||
trx,
|
||||
);
|
||||
}
|
||||
|
||||
// update spaceId in shares
|
||||
if (pageIds.length > 0) {
|
||||
await trx
|
||||
.updateTable('shares')
|
||||
.set({ spaceId: spaceId })
|
||||
.where('pageId', 'in', pageIds)
|
||||
.execute();
|
||||
}
|
||||
|
||||
// Update attachments
|
||||
await this.attachmentRepo.updateAttachmentsByPageId(
|
||||
{ spaceId },
|
||||
|
||||
Reference in New Issue
Block a user