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: {