fix property access

This commit is contained in:
leca 2024-10-31 10:10:27 +03:00
parent 6adb48aeab
commit f6e25d606a
1 changed files with 2 additions and 2 deletions

View File

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