We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9383be9 commit 9a9ed55Copy full SHA for 9a9ed55
server/apis/workspace/service.ts
@@ -41,7 +41,7 @@ export const info = async (workspaceId: number) => {
41
if (!workspace)
42
throw new InvalidWorkspaceError('존재하지 않는 워크스페이스에요 ^^');
43
44
- const { users, moms } = workspace;
+ const { name, users, moms } = workspace;
45
46
const usersInfo: Pick<User, 'name' | 'avatarUrl'>[] = [];
47
const momsInfo: string[] = [];
@@ -64,5 +64,5 @@ export const info = async (workspaceId: number) => {
64
}
65
66
67
- return { usersInfo, momsInfo };
+ return { workspaceName: name, usersInfo, momsInfo };
68
};
0 commit comments