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