Add ICAL_UID_DOMAIN to .env
parent
30bd23406a
commit
6c1aa1a0ac
|
@ -257,3 +257,5 @@ E2E_TEST_OIDC_USER_EMAIL=
|
||||||
E2E_TEST_OIDC_USER_PASSWORD=
|
E2E_TEST_OIDC_USER_PASSWORD=
|
||||||
|
|
||||||
# ***********************************************************************************************************
|
# ***********************************************************************************************************
|
||||||
|
|
||||||
|
ICAL_UID_DOMAIN="cal.com"
|
|
@ -1099,7 +1099,7 @@ async function handler(
|
||||||
const calEventUserFieldsResponses =
|
const calEventUserFieldsResponses =
|
||||||
"calEventUserFieldsResponses" in reqBody ? reqBody.calEventUserFieldsResponses : null;
|
"calEventUserFieldsResponses" in reqBody ? reqBody.calEventUserFieldsResponses : null;
|
||||||
|
|
||||||
const iCalUID = originalRescheduledBooking?.iCalUID ?? `${uid}@cal.com`;
|
const iCalUID = originalRescheduledBooking?.iCalUID ?? `${uid}@${process.env.ICAL_UID_DOMAIN}`;
|
||||||
// For bookings made before introducing iCalSequence, assume that the sequence should start at 1. For new bookings start at 0.
|
// For bookings made before introducing iCalSequence, assume that the sequence should start at 1. For new bookings start at 0.
|
||||||
const iCalSequence = originalRescheduledBooking?.iCalSequence
|
const iCalSequence = originalRescheduledBooking?.iCalSequence
|
||||||
? originalRescheduledBooking.iCalSequence + 1
|
? originalRescheduledBooking.iCalSequence + 1
|
||||||
|
|
|
@ -239,6 +239,7 @@
|
||||||
"HEROKU_APP_NAME",
|
"HEROKU_APP_NAME",
|
||||||
"HUBSPOT_CLIENT_ID",
|
"HUBSPOT_CLIENT_ID",
|
||||||
"HUBSPOT_CLIENT_SECRET",
|
"HUBSPOT_CLIENT_SECRET",
|
||||||
|
"ICAL_UID_DOMAIN",
|
||||||
"INTEGRATION_TEST_MODE",
|
"INTEGRATION_TEST_MODE",
|
||||||
"INTERCOM_SECRET",
|
"INTERCOM_SECRET",
|
||||||
"INTERCOM_SECRET",
|
"INTERCOM_SECRET",
|
||||||
|
|
Loading…
Reference in New Issue