fix property access
This commit is contained in:
		@@ -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);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user