fix property access

This commit is contained in:
2024-10-31 10:10:27 +03:00
parent 6adb48aeab
commit f6e25d606a

View File

@@ -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);
}
}