From e1cea2dc7eb1271b79c383d40c89e3ac7708dd80 Mon Sep 17 00:00:00 2001 From: Priyabrat Date: Sat, 20 Jan 2024 13:12:56 +0530 Subject: [PATCH] Get user response updated (#20) * ADD team delete route * Health check updated * sayHello bug fixed * team delete updated * comment removed * Logged in user response updated --------- Co-authored-by: Raj Co-authored-by: Raj <63448767+Raj217@users.noreply.github.com> Co-authored-by: Priyabrat Duarah --- src/middlewares/auth.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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, }, },