Skip to content

Commit 9f2b44a

Browse files
committed
refactor : 스프레드 연산자 제거
1 parent 2f0bad3 commit 9f2b44a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/apis/workspace/controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ router.post(
1515

1616
const workspace = await workspaceService.create(name);
1717

18-
res.status(CREATED).send({ ...workspace });
18+
res.status(CREATED).send(workspace);
1919
}),
2020
);
2121

@@ -39,9 +39,9 @@ router.get(
3939
asyncWrapper(async (req: Request, res: Response) => {
4040
const { id: workspaceId } = req.params;
4141

42-
const workspaceInfo = await workspaceService.info(+workspaceId);
42+
const workspaceInfo = await workspaceService.info(Number(workspaceId));
4343

44-
res.send({ ...workspaceInfo });
44+
res.send(workspaceInfo);
4545
}),
4646
);
4747

0 commit comments

Comments
 (0)