Calculate proper duration
This commit is contained in:
parent
49abf06ce6
commit
9ff8e9bd00
1 changed files with 4 additions and 2 deletions
|
@ -85,11 +85,11 @@ const ZoomVideo = (credential): VideoApiAdapter => {
|
||||||
|
|
||||||
const translateMeeting = (meeting: VideoMeeting) => {
|
const translateMeeting = (meeting: VideoMeeting) => {
|
||||||
// Documentation at: https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate
|
// Documentation at: https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate
|
||||||
return {
|
const meet = {
|
||||||
topic: meeting.title,
|
topic: meeting.title,
|
||||||
type: 2, // Means that this is a scheduled meeting
|
type: 2, // Means that this is a scheduled meeting
|
||||||
start_time: meeting.startTime,
|
start_time: meeting.startTime,
|
||||||
duration: 60, //TODO calculate endTime - startTime (in minutes, int)
|
duration: ((new Date(meeting.endTime)).getTime() - (new Date(meeting.startTime)).getTime()) / 60000,
|
||||||
//schedule_for: "string", TODO: Used when scheduling the meeting for someone else (needed?)
|
//schedule_for: "string", TODO: Used when scheduling the meeting for someone else (needed?)
|
||||||
timezone: meeting.timezone,
|
timezone: meeting.timezone,
|
||||||
//password: "string", TODO: Should we use a password? Maybe generate a random one?
|
//password: "string", TODO: Should we use a password? Maybe generate a random one?
|
||||||
|
@ -110,6 +110,8 @@ const ZoomVideo = (credential): VideoApiAdapter => {
|
||||||
registrants_email_notification: true
|
registrants_email_notification: true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
return meet;
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue