Skip to content

Commit

Permalink
Get user response updated (#20)
Browse files Browse the repository at this point in the history
* ADD team delete route

* Health check updated

* sayHello bug fixed

* team delete updated

* comment removed

* Logged in user response updated

---------

Co-authored-by: Raj <rajdristant007@gmail.com>
Co-authored-by: Raj <63448767+Raj217@users.noreply.github.com>
Co-authored-by: Priyabrat  Duarah <priyabrat@Priyabrats-MacBook-Air.local>
  • Loading branch information
4 people authored Jan 20, 2024
1 parent b8bb79d commit e1cea2d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/middlewares/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand Down

0 comments on commit e1cea2d

Please sign in to comment.