fix property access
This commit is contained in:
parent
6adb48aeab
commit
f6e25d606a
|
@ -43,9 +43,9 @@ class GroupController {
|
||||||
async getByName(req, res) {
|
async getByName(req, res) {
|
||||||
let groupName = req.params.groupName || req.body.groupName;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue