diff --git a/src/middlewares/auth.ts b/src/middlewares/auth.ts index 316d0b3..b292d46 100644 --- a/src/middlewares/auth.ts +++ b/src/middlewares/auth.ts @@ -42,7 +42,20 @@ const validateUser: Interfaces.Middleware.Async = async (req, _res, next) => { select: { team: { select: { - members: true, + members: { + select: { + id: true, + registrationStatus: true, + role: true, + user: { + select: { + id: true, + firstName: true, + username: true, + }, + }, + }, + }, event: true, }, },