From 24a8b500d1536402be4b59831793d1838c9d6290 Mon Sep 17 00:00:00 2001 From: Hager Eldakroury Date: Fri, 16 Jul 2021 22:23:41 +0200 Subject: [PATCH] fix(meetings): Twilio tokens with usernames --- meetings/src/routes/join.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meetings/src/routes/join.ts b/meetings/src/routes/join.ts index 0006a9f..a5b3853 100644 --- a/meetings/src/routes/join.ts +++ b/meetings/src/routes/join.ts @@ -29,7 +29,7 @@ router.post(`${baseUrl}/join/:id`, async (req: Request, res: Response) => { return res.status(400).send("User is not authorized"); } - const user = resV.data._id; + const user = resV.data.username; try { let userMeetings = await UserMeetings.findOne({ name: user });