From 615a89737dae9c628beda93d06425db9122ce59e Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Mon, 20 May 2024 17:22:38 +0530 Subject: [PATCH] fix: daily buffer in getServerSideProps (#15093) --- .../videos/views/videos-single-view.getServerSideProps.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/modules/videos/views/videos-single-view.getServerSideProps.tsx b/apps/web/modules/videos/views/videos-single-view.getServerSideProps.tsx index 6c28da1067..b5c3d085c9 100644 --- a/apps/web/modules/videos/views/videos-single-view.getServerSideProps.tsx +++ b/apps/web/modules/videos/views/videos-single-view.getServerSideProps.tsx @@ -81,9 +81,9 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { ).profile : null; - //daily.co calls have a 60 minute exit buffer when a user enters a call when it's not available it will trigger the modals + //daily.co calls have a 14 days exit buffer when a user enters a call when it's not available it will trigger the modals const now = new Date(); - const exitDate = new Date(now.getTime() - 60 * 60 * 1000); + const exitDate = new Date(now.getTime() - 14 * 24 * 60 * 60 * 1000); //find out if the meeting is in the past const isPast = booking?.endTime <= exitDate;