Skip to content

Commit b51b5f3

Browse files
authored
Merge pull request #646 from xxcxy/fix-issues-593
fix issue 593 reschedule
2 parents 09ec14f + 3ce16bd commit b51b5f3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/eventHandlers/InterviewEventHandler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ async function sendInterviewRescheduledNotifications (payload) {
259259
const data = await notificationsSchedulerService.getDataForInterview(interviewEntity)
260260
if (!data) { return }
261261

262-
await updateZoomMeeting(interviewEntity.startTimestamp, interviewEntity.duration, interviewEntity.zoomAccountApiKey, interviewEntity.zoomMeetingId)
262+
await updateZoomMeeting(interviewEntity.startTimestamp, interviewEntity.duration, interviewEntity.zoomAccountApiKey, interviewEntity.zoomMeetingId, interviewEntity.guestTimezone || interviewEntity.hostTimezone)
263263

264264
const interviewCancelLink = `${config.TAAS_APP_BASE_URL}/interview/${interview.id}/cancel`
265265
const interviewRescheduleLink = `${config.TAAS_APP_BASE_URL}/interview/${interview.id}/reschedule`

src/services/ZoomService.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,16 @@ async function generateZoomMeetingLink (startTime, duration, timezone) {
121121
* @param {Integer} duration the duration of the meeting
122122
* @param {String} apiKey zoom account api key
123123
* @param {Integer} zoomMeetingId zoom meeting id
124+
* @param {String} timezone the timezone of the meeting
124125
* @returns {undefined}
125126
*/
126-
async function updateZoomMeeting (startTime, duration, zoomAccountApiKey, zoomMeetingId) {
127+
async function updateZoomMeeting (startTime, duration, zoomAccountApiKey, zoomMeetingId, timezone) {
127128
const { accessToken } = await generateZoomJWTBearerAccessToken(zoomAccountApiKey)
128129
// PATCH request details in Zoom API docs:
129130
// https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingupdate
130131
await axios.patch(`https://api.zoom.us/v2/meetings/${zoomMeetingId}`, {
131132
start_time: startTime.toISOString(),
133+
timezone,
132134
duration
133135
}, {
134136
headers: {

0 commit comments

Comments
 (0)