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 2e94af1 commit 7e91bf4Copy full SHA for 7e91bf4
server/apis/workspace/service.ts
@@ -41,17 +41,17 @@ export const info = async (workspaceId: number) => {
41
if (!workspace)
42
throw new InvalidWorkspaceError('존재하지 않는 워크스페이스에요 ^^');
43
44
- const { name, users: usersInfo, moms: momsInfo } = workspace;
+ const { name, users: userIds, moms: momsIds } = workspace;
45
46
const users: Pick<User, 'name' | 'avatarUrl'>[] = await userModel.find(
47
{
48
- id: { $in: usersInfo },
+ id: { $in: userIds },
49
},
50
{ name: 1, avatarUrl: 1, _id: 0 },
51
);
52
53
const moms: string[] = await momModel.find(
54
- { id: { $in: momsInfo } },
+ { id: { $in: momsIds } },
55
{ name: 1 },
56
57
0 commit comments