Skip to content

Commit 7e91bf4

Browse files
committed
chore : 네이밍 변경
1 parent 2e94af1 commit 7e91bf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/apis/workspace/service.ts

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

44-
const { name, users: usersInfo, moms: momsInfo } = workspace;
44+
const { name, users: userIds, moms: momsIds } = workspace;
4545

4646
const users: Pick<User, 'name' | 'avatarUrl'>[] = await userModel.find(
4747
{
48-
id: { $in: usersInfo },
48+
id: { $in: userIds },
4949
},
5050
{ name: 1, avatarUrl: 1, _id: 0 },
5151
);
5252

5353
const moms: string[] = await momModel.find(
54-
{ id: { $in: momsInfo } },
54+
{ id: { $in: momsIds } },
5555
{ name: 1 },
5656
);
5757

0 commit comments

Comments
 (0)