Skip to content

Scheduling infrastructure for absolutely everyone.

fix: daily buffer in getServerSideProps (#15093)

Udit Takkar615a89737dae
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 6c28da10675..b5c3d085c96 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;