From ea65a2a27e6770123259090c3570c613d7d8ee58 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Tue, 16 May 2023 01:45:05 +0530 Subject: [PATCH] fix: add exp in /meeting-tokens (#8869) * fix: add exp in /meeting-tokens Signed-off-by: Udit Takkar * hijacking this PR to add a NIT change lol --------- Signed-off-by: Udit Takkar Co-authored-by: Peer Richelsen Co-authored-by: Peer Richelsen --- apps/web/pages/_document.tsx | 2 +- packages/app-store/dailyvideo/lib/VideoApiAdapter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/_document.tsx b/apps/web/pages/_document.tsx index 600eeb009d..dcc53b486c 100644 --- a/apps/web/pages/_document.tsx +++ b/apps/web/pages/_document.tsx @@ -46,7 +46,7 @@ class MyDocument extends Document { - + diff --git a/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts b/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts index a7076b832f..e0a988f5e2 100644 --- a/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts +++ b/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts @@ -93,7 +93,7 @@ const DailyVideoApiAdapter = (): VideoApiAdapter => { const body = await translateEvent(event); const dailyEvent = await postToDailyAPI(endpoint, body).then(dailyReturnTypeSchema.parse); const meetingToken = await postToDailyAPI("/meeting-tokens", { - properties: { room_name: dailyEvent.name, is_owner: true }, + properties: { room_name: dailyEvent.name, exp: dailyEvent.config.exp, is_owner: true }, }).then(meetingTokenSchema.parse); return Promise.resolve({