Skip to content

Commit 9a9ed55

Browse files
committed
feat : 워크스페이스 이름 받아오기
1 parent 9383be9 commit 9a9ed55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/apis/workspace/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const info = async (workspaceId: number) => {
4141
if (!workspace)
4242
throw new InvalidWorkspaceError('존재하지 않는 워크스페이스에요 ^^');
4343

44-
const { users, moms } = workspace;
44+
const { name, users, moms } = workspace;
4545

4646
const usersInfo: Pick<User, 'name' | 'avatarUrl'>[] = [];
4747
const momsInfo: string[] = [];
@@ -64,5 +64,5 @@ export const info = async (workspaceId: number) => {
6464
}
6565
}
6666

67-
return { usersInfo, momsInfo };
67+
return { workspaceName: name, usersInfo, momsInfo };
6868
};

0 commit comments

Comments
 (0)