Skip to content

Commit f294f67

Browse files
committed
chore : workspace _id 필드는 안받도록 수정
1 parent 68ab4ae commit f294f67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/apis/user/service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import userModel from '@apis/user/model';
22
import workspaceModel from '@apis/workspace/model';
3-
import AuthorizationError from '@errors/authorization-error';
43

54
export const getWorkspaces = async (userId: number, targetUserId?: number) => {
65
/*
@@ -17,7 +16,7 @@ export const getWorkspaces = async (userId: number, targetUserId?: number) => {
1716
{
1817
id: { $in: user.workspaces },
1918
},
20-
{ id: 1, name: 1 },
19+
{ _id: 0, id: 1, name: 1 },
2120
);
2221

2322
return workspaces;

0 commit comments

Comments
 (0)