added test if there's no group admin
This commit is contained in:
parent
693a0980d9
commit
96133b7733
|
@ -71,6 +71,8 @@ class GroupController {
|
|||
|
||||
let result = await GroupService.getAdminId(groupId);
|
||||
|
||||
if (!result) result = -1
|
||||
|
||||
return res.status(200).send(result.toString())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue