fix: Cal Video Links Expire After 14 Days (#14557)
* Set expiry date to 14 days after end time * Add comment
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user