added test if there's no group admin

This commit is contained in:
leca 2024-11-04 04:42:04 +03:00
parent 693a0980d9
commit 96133b7733
1 changed files with 2 additions and 0 deletions

View File

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