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