diff --git a/src/controllers/group.js b/src/controllers/group.js index c939e02..25b5fee 100644 --- a/src/controllers/group.js +++ b/src/controllers/group.js @@ -43,9 +43,9 @@ class GroupController { async getByName(req, res) { let groupName = req.params.groupName || req.body.groupName; - let id = await GroupService.getByName(groupName); + let group = await GroupService.getByName(groupName); - return res.status(200).send(id); + return res.status(200).send(group.id); } }