This commit is contained in:
Philipinho
2026-03-01 20:58:04 +00:00
parent 1a897faaa2
commit d5e4b8bb59
10 changed files with 164 additions and 68 deletions

View File

@@ -66,8 +66,8 @@ export class CommentService {
const comment = await this.commentRepo.insertComment({
pageId: page.id,
content: commentContent,
selection: createCommentDto?.selection?.substring(0, 250),
type: 'inline',
selection: createCommentDto?.selection?.substring(0, 250) ?? null,
type: createCommentDto.type ?? 'page',
parentCommentId: createCommentDto?.parentCommentId,
creatorId: userId,
workspaceId: workspaceId,