mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
small fixes
This commit is contained in:
@@ -27,7 +27,7 @@ export const getAllAdmins = async (req: Request, res: Response) => {
|
||||
}
|
||||
|
||||
// TODO: Add exception handling
|
||||
const users = await prisma.admin.findMany({ select: { pid: true, name: true, permission_level: true } });
|
||||
const users = await prisma.admin.findMany({ select: { pid: true, name: true, permission_level: true, groups: { select: { pid: true } } } });
|
||||
|
||||
res.status(200).json({
|
||||
type: "success",
|
||||
|
||||
Reference in New Issue
Block a user