diff --git a/apps/server/src/core/comment/comment.service.ts b/apps/server/src/core/comment/comment.service.ts index 48a5dd99..b1d4ae4c 100644 --- a/apps/server/src/core/comment/comment.service.ts +++ b/apps/server/src/core/comment/comment.service.ts @@ -20,7 +20,7 @@ export class CommentService { ) {} async findById(commentId: string) { - const comment = this.commentRepo.findById(commentId, { + const comment = await this.commentRepo.findById(commentId, { includeCreator: true, }); if (!comment) { diff --git a/apps/server/src/core/workspace/services/workspace.service.ts b/apps/server/src/core/workspace/services/workspace.service.ts index e81ba47b..445a85ad 100644 --- a/apps/server/src/core/workspace/services/workspace.service.ts +++ b/apps/server/src/core/workspace/services/workspace.service.ts @@ -39,7 +39,7 @@ export class WorkspaceService { } async getWorkspaceInfo(workspaceId: string) { - const workspace = this.workspaceRepo.findById(workspaceId); + const workspace = await this.workspaceRepo.findById(workspaceId); if (!workspace) { throw new NotFoundException('Workspace not found'); }