diff --git a/.circleci/config.yml b/.circleci/config.yml
index b91a021d..47298883 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -68,6 +68,7 @@ workflows:
branches:
only:
- dev
+ - hotfix-nylas-app
# Production builds are exectuted only on tagged commits to the
# master branch.
diff --git a/data/notification-email-templates/taas.notification.candidates-available-for-review.html b/data/notification-email-templates/taas.notification.candidates-available-for-review.html
index 896b7578..19155e70 100644
--- a/data/notification-email-templates/taas.notification.candidates-available-for-review.html
+++ b/data/notification-email-templates/taas.notification.candidates-available-for-review.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-awaits-resolution.html b/data/notification-email-templates/taas.notification.interview-awaits-resolution.html
index cdb76f1f..dc689443 100644
--- a/data/notification-email-templates/taas.notification.interview-awaits-resolution.html
+++ b/data/notification-email-templates/taas.notification.interview-awaits-resolution.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-cancelled-guest.html b/data/notification-email-templates/taas.notification.interview-cancelled-guest.html
index bfcd7dd8..3b4183df 100644
--- a/data/notification-email-templates/taas.notification.interview-cancelled-guest.html
+++ b/data/notification-email-templates/taas.notification.interview-cancelled-guest.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-cancelled-host.html b/data/notification-email-templates/taas.notification.interview-cancelled-host.html
index 1a171b4a..3643b34c 100644
--- a/data/notification-email-templates/taas.notification.interview-cancelled-host.html
+++ b/data/notification-email-templates/taas.notification.interview-cancelled-host.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-coming-up-guest.html b/data/notification-email-templates/taas.notification.interview-coming-up-guest.html
index a1f04758..314e24b7 100644
--- a/data/notification-email-templates/taas.notification.interview-coming-up-guest.html
+++ b/data/notification-email-templates/taas.notification.interview-coming-up-guest.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-coming-up-host.html b/data/notification-email-templates/taas.notification.interview-coming-up-host.html
index f7cea7c0..4ab2d447 100644
--- a/data/notification-email-templates/taas.notification.interview-coming-up-host.html
+++ b/data/notification-email-templates/taas.notification.interview-coming-up-host.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-expired-guest.html b/data/notification-email-templates/taas.notification.interview-expired-guest.html
index 9be1e912..63705cc4 100644
--- a/data/notification-email-templates/taas.notification.interview-expired-guest.html
+++ b/data/notification-email-templates/taas.notification.interview-expired-guest.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-expired-host.html b/data/notification-email-templates/taas.notification.interview-expired-host.html
index 2ca40dba..076cf03d 100644
--- a/data/notification-email-templates/taas.notification.interview-expired-host.html
+++ b/data/notification-email-templates/taas.notification.interview-expired-host.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-invitation.html b/data/notification-email-templates/taas.notification.interview-invitation.html
index da535587..1aeb8b07 100644
--- a/data/notification-email-templates/taas.notification.interview-invitation.html
+++ b/data/notification-email-templates/taas.notification.interview-invitation.html
@@ -17,7 +17,7 @@
 |
| |
 |
@@ -105,7 +105,7 @@
Interviewee: {{this.guestFullName}}
Interviewer: {{this.hostFullName}}
- Select Interview Time
+ Select Interview Time
Need help? Please contact us here.
diff --git a/data/notification-email-templates/taas.notification.interview-link-for-guest.html b/data/notification-email-templates/taas.notification.interview-link-for-guest.html
index 9dd4c89f..8f76855a 100644
--- a/data/notification-email-templates/taas.notification.interview-link-for-guest.html
+++ b/data/notification-email-templates/taas.notification.interview-link-for-guest.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-link-for-host.html b/data/notification-email-templates/taas.notification.interview-link-for-host.html
index 52abb4fb..f1c64c6b 100644
--- a/data/notification-email-templates/taas.notification.interview-link-for-host.html
+++ b/data/notification-email-templates/taas.notification.interview-link-for-host.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-rescheduled-guest.html b/data/notification-email-templates/taas.notification.interview-rescheduled-guest.html
index ca5f815a..86c935b5 100644
--- a/data/notification-email-templates/taas.notification.interview-rescheduled-guest.html
+++ b/data/notification-email-templates/taas.notification.interview-rescheduled-guest.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-rescheduled-host.html b/data/notification-email-templates/taas.notification.interview-rescheduled-host.html
index 5527ca88..b472cfaf 100644
--- a/data/notification-email-templates/taas.notification.interview-rescheduled-host.html
+++ b/data/notification-email-templates/taas.notification.interview-rescheduled-host.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.interview-schedule-reminder.html b/data/notification-email-templates/taas.notification.interview-schedule-reminder.html
index 44dffe5d..6db8e34a 100644
--- a/data/notification-email-templates/taas.notification.interview-schedule-reminder.html
+++ b/data/notification-email-templates/taas.notification.interview-schedule-reminder.html
@@ -17,7 +17,7 @@
 |
| |
 |
@@ -106,7 +106,7 @@
Interviewer: {{this.hostFullName}}
- Select Interview Time
+ Select Interview Time
Need help? Please contact us here.
diff --git a/data/notification-email-templates/taas.notification.interviews-overlapping.html b/data/notification-email-templates/taas.notification.interviews-overlapping.html
index 14d9ec44..017f1d61 100644
--- a/data/notification-email-templates/taas.notification.interviews-overlapping.html
+++ b/data/notification-email-templates/taas.notification.interviews-overlapping.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.job-candidate-resume-viewed.html b/data/notification-email-templates/taas.notification.job-candidate-resume-viewed.html
index 9dfda6ea..0799e325 100644
--- a/data/notification-email-templates/taas.notification.job-candidate-resume-viewed.html
+++ b/data/notification-email-templates/taas.notification.job-candidate-resume-viewed.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.job-candidate-selected.html b/data/notification-email-templates/taas.notification.job-candidate-selected.html
index 86dc733c..0b2be7b1 100644
--- a/data/notification-email-templates/taas.notification.job-candidate-selected.html
+++ b/data/notification-email-templates/taas.notification.job-candidate-selected.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.job-created.html b/data/notification-email-templates/taas.notification.job-created.html
index d72610f2..0c631853 100644
--- a/data/notification-email-templates/taas.notification.job-created.html
+++ b/data/notification-email-templates/taas.notification.job-created.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.post-interview-action-required.html b/data/notification-email-templates/taas.notification.post-interview-action-required.html
index f851cd89..3a0f16f6 100644
--- a/data/notification-email-templates/taas.notification.post-interview-action-required.html
+++ b/data/notification-email-templates/taas.notification.post-interview-action-required.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.resource-booking-expiration.html b/data/notification-email-templates/taas.notification.resource-booking-expiration.html
index a973af00..0e49644c 100644
--- a/data/notification-email-templates/taas.notification.resource-booking-expiration.html
+++ b/data/notification-email-templates/taas.notification.resource-booking-expiration.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.resource-booking-placed.html b/data/notification-email-templates/taas.notification.resource-booking-placed.html
index 28640992..ba09ab1b 100644
--- a/data/notification-email-templates/taas.notification.resource-booking-placed.html
+++ b/data/notification-email-templates/taas.notification.resource-booking-placed.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/data/notification-email-templates/taas.notification.team-created.html b/data/notification-email-templates/taas.notification.team-created.html
index 8ecfd7b1..13d36c67 100644
--- a/data/notification-email-templates/taas.notification.team-created.html
+++ b/data/notification-email-templates/taas.notification.team-created.html
@@ -17,7 +17,7 @@
 |
| |
 |
diff --git a/src/services/ZoomService.js b/src/services/ZoomService.js
index c14d0d1a..46061a3a 100644
--- a/src/services/ZoomService.js
+++ b/src/services/ZoomService.js
@@ -107,7 +107,7 @@ async function generateZoomMeetingLink (startTime, duration) {
return { meeting, zoomAccountApiKey }
} catch (err) {
- console.log(err.message)
+ console.log(`generateZoomMeetingLink error: ${err.message}`)
throw err
}
}
@@ -122,17 +122,22 @@ async function generateZoomMeetingLink (startTime, duration) {
* @returns {undefined}
*/
async function updateZoomMeeting (startTime, duration, zoomAccountApiKey, zoomMeetingId) {
- const { accessToken } = await generateZoomJWTBearerAccessToken(zoomAccountApiKey)
- // PATCH request details in Zoom API docs:
- // https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate
- await axios.patch(`https://api.zoom.us/v2/meetings/${zoomMeetingId}`, {
- start_time: moment(startTime).utc().format(),
- duration
- }, {
- headers: {
- Authorization: `Bearer ${accessToken}`
- }
- })
+ try {
+ const { accessToken } = await generateZoomJWTBearerAccessToken(zoomAccountApiKey)
+ // PATCH request details in Zoom API docs:
+ // https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate
+ await axios.patch(`https://api.zoom.us/v2/meetings/${zoomMeetingId}`, {
+ start_time: moment(startTime).utc().format(),
+ duration
+ }, {
+ headers: {
+ Authorization: `Bearer ${accessToken}`
+ }
+ })
+ } catch (err) {
+ console.log(`updateZoomMeeting error: ${err.message}`)
+ throw err
+ }
}
/**
@@ -143,14 +148,19 @@ async function updateZoomMeeting (startTime, duration, zoomAccountApiKey, zoomMe
* @returns {undefined}
*/
async function cancelZoomMeeting (zoomAccountApiKey, zoomMeetingId) {
- const { accessToken } = await generateZoomJWTBearerAccessToken(zoomAccountApiKey)
- // DELETE request details in Zoom API docs:
- // https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingdelete
- await axios.delete(`https://api.zoom.us/v2/meetings/${zoomMeetingId}`, {
- headers: {
- Authorization: `Bearer ${accessToken}`
- }
- })
+ try {
+ const { accessToken } = await generateZoomJWTBearerAccessToken(zoomAccountApiKey)
+ // DELETE request details in Zoom API docs:
+ // https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingdelete
+ await axios.delete(`https://api.zoom.us/v2/meetings/${zoomMeetingId}`, {
+ headers: {
+ Authorization: `Bearer ${accessToken}`
+ }
+ })
+ } catch (err) {
+ console.log(`cancelZoomMeeting error: ${err.message}`)
+ throw err
+ }
}
/**
@@ -161,15 +171,20 @@ async function cancelZoomMeeting (zoomAccountApiKey, zoomMeetingId) {
* @returns {undefined}
*/
async function getZoomMeeting (zoomAccountApiKey, zoomMeetingId) {
- const { accessToken } = await generateZoomJWTBearerAccessToken(zoomAccountApiKey)
- // GET request details in Zoom API docs:
- // https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting
- const res = await axios.get(`https://api.zoom.us/v2/meetings/${zoomMeetingId}`, {
- headers: {
- Authorization: `Bearer ${accessToken}`
- }
- })
- return res.data
+ try {
+ const { accessToken } = await generateZoomJWTBearerAccessToken(zoomAccountApiKey)
+ // GET request details in Zoom API docs:
+ // https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting
+ const res = await axios.get(`https://api.zoom.us/v2/meetings/${zoomMeetingId}`, {
+ headers: {
+ Authorization: `Bearer ${accessToken}`
+ }
+ })
+ return res.data
+ } catch (err) {
+ console.log(`getZoomMeeting error: ${err.message}`)
+ throw err
+ }
}
module.exports = { generateZoomMeetingLink, updateZoomMeeting, cancelZoomMeeting, getZoomMeeting }