From 6737b176541b6a6e5f0dd015b2a1923f3d02b1e6 Mon Sep 17 00:00:00 2001 From: Somnath Chattaraj Date: Thu, 10 Oct 2024 10:00:08 +0530 Subject: [PATCH] solve type checking and docker error --- backend/src/controllers/routeControllers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/controllers/routeControllers.ts b/backend/src/controllers/routeControllers.ts index 30e99b8..52cbbe7 100644 --- a/backend/src/controllers/routeControllers.ts +++ b/backend/src/controllers/routeControllers.ts @@ -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) }; });