Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Cal Video Links Expire After 14 Days (#14557)

Joe Au-Yeung902c4412480a
diff --git a/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts b/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts
index 97c36059e72..27356649dfb 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: {