From 7faed5f71b8d7cf63ce51cccb88e24da35e9a4be Mon Sep 17 00:00:00 2001 From: hyonun321 Date: Wed, 4 Dec 2024 23:59:04 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=A6=B0=ED=8A=B8=EC=97=90=EB=9F=AC?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/workspace/workspace.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/workspace/workspace.service.ts b/server/src/workspace/workspace.service.ts index 55a66da..8405f99 100644 --- a/server/src/workspace/workspace.service.ts +++ b/server/src/workspace/workspace.service.ts @@ -182,7 +182,7 @@ export class WorkSpaceService implements OnModuleInit { } // authUser Map에서 모든 유저 ID를 배열로 변환하여 반환 // authUser는 Map 형태로 userId와 role을 저장하고 있음 - //return Array.from(workspaceData.authUser.keys()); + // return Array.from(workspaceData.authUser.keys()); const members = await this.userModel.find({ workspaces: workspaceId }).select("id"); return members.map((member) => member.id); } catch (error) { @@ -259,7 +259,7 @@ export class WorkSpaceService implements OnModuleInit { return { id: workspace.id, name: workspace.name, - role: role, + role, memberCount, activeUsers: room?.size || 0, };