Skip to content

Commit 241a321

Browse files
committed
nylas page should allow only one booking
also hide name on the nylas page
1 parent 5178f5e commit 241a321

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/services/NylasService.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ async function createSchedulingPage (interview, calendar, eventLocation, eventTi
9999
},
100100
booking: {
101101
additional_guests_hidden: true,
102-
opening_hours: [].concat(interview.availableTime)
102+
opening_hours: [].concat(interview.availableTime),
103+
// uncomment when custom notifications are implemented
104+
// confirmation_emails_to_guests: false,
105+
// confirmation_emails_to_host: false,
106+
name_field_hidden: true
103107
},
104108
calendar_ids: {
105109
[calendar.account_id]: {
@@ -113,7 +117,8 @@ async function createSchedulingPage (interview, calendar, eventLocation, eventTi
113117
title: eventTitle // becomes the title of the Edit availability modal, unless overridden through UI
114118
},
115119
expire_after: {
116-
date: interview.expireTimestamp.unix()
120+
date: interview.expireTimestamp.unix(),
121+
uses: 1 // only allow one booking
117122
},
118123
timezone: interview.timezone
119124
},

0 commit comments

Comments
 (0)