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 2f0bad3 commit 9f2b44aCopy full SHA for 9f2b44a
server/apis/workspace/controller.ts
@@ -15,7 +15,7 @@ router.post(
15
16
const workspace = await workspaceService.create(name);
17
18
- res.status(CREATED).send({ ...workspace });
+ res.status(CREATED).send(workspace);
19
}),
20
);
21
@@ -39,9 +39,9 @@ router.get(
39
asyncWrapper(async (req: Request, res: Response) => {
40
const { id: workspaceId } = req.params;
41
42
- const workspaceInfo = await workspaceService.info(+workspaceId);
+ const workspaceInfo = await workspaceService.info(Number(workspaceId));
43
44
- res.send({ ...workspaceInfo });
+ res.send(workspaceInfo);
45
46
47
0 commit comments