From 902c4412480ac2ea92365036d8adca65a399f39f Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Fri, 12 Apr 2024 17:05:26 -0400 Subject: [PATCH] fix: Cal Video Links Expire After 14 Days (#14557) * Set expiry date to 14 days after end time * Add comment --- packages/app-store/dailyvideo/lib/VideoApiAdapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts b/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts index 97c36059e7..27356649df 100644 --- a/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts +++ b/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts @@ -107,8 +107,8 @@ const DailyVideoApiAdapter = (): VideoApiAdapter => { const translateEvent = async (event: CalendarEvent) => { // Documentation at: https://docs.daily.co/reference#list-rooms - // added a 1 hour buffer for room expiration - const exp = Math.round(new Date(event.endTime).getTime() / 1000) + 60 * 60; + // Adds 14 days from the end of the booking as the expiration date + const exp = Math.round(new Date(event.endTime).getTime() / 1000) + 60 * 60 * 24 * 14; const { scale_plan: scalePlan } = await getDailyAppKeys(); const hasTeamPlan = await prisma.membership.findFirst({ where: {