Skip to content

Commit

Permalink
solve type checking and docker error
Browse files Browse the repository at this point in the history
  • Loading branch information
Somnath-Chattaraj committed Oct 10, 2024
1 parent 566bcb8 commit 6737b17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/controllers/routeControllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const searchRoom = asyncHandler(async (req: Request, res: Response) => {
}
}
});
const updateArray = rooms.map(room => {
const otherUsers = room.users.filter(user => user.user_id != user_id);
const updateArray = rooms.map((room : any) => {
const otherUsers = room.users.filter((user : any) => user.user_id != user_id);
return {
roomId: room.id,
usernames: otherUsers.map(user => user.username)
usernames: otherUsers.map((user : any) => user.username)
};
});

Expand Down

0 comments on commit 6737b17

Please sign in to comment.