From 91596be70e50a401cff1efa442f87a7aeb8b5aa1 Mon Sep 17 00:00:00 2001 From: Zero King Date: Thu, 6 Mar 2025 18:14:30 +0800 Subject: [PATCH] fix: add missing awaits (#814) --- apps/server/src/core/comment/comment.service.ts | 2 +- apps/server/src/core/workspace/services/workspace.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); }