Add ICAL_UID_DOMAIN to .env

refactor/generate-ics-event
Joe Au-Yeung 2023-10-31 14:16:16 -04:00
parent 30bd23406a
commit 6c1aa1a0ac
3 changed files with 4 additions and 1 deletions

View File

@ -257,3 +257,5 @@ E2E_TEST_OIDC_USER_EMAIL=
E2E_TEST_OIDC_USER_PASSWORD= E2E_TEST_OIDC_USER_PASSWORD=
# *********************************************************************************************************** # ***********************************************************************************************************
ICAL_UID_DOMAIN="cal.com"

View File

@ -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

View File

@ -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",