mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix webinar resource
This commit is contained in:
parent
5829540083
commit
7fea380af5
|
@ -66,7 +66,7 @@ export const webinarFields = [
|
|||
],
|
||||
},
|
||||
},
|
||||
description: 'User ID or email address of user.',
|
||||
description: 'User ID or email ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
|
@ -95,14 +95,14 @@ export const webinarFields = [
|
|||
},
|
||||
{
|
||||
displayName: 'Alternative Hosts',
|
||||
name: 'alternative_hosts',
|
||||
name: 'alternativeHosts',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Alternative hosts email IDs.',
|
||||
},
|
||||
{
|
||||
displayName: 'Approval Type',
|
||||
name: 'approval_type',
|
||||
name: 'approvalType',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
|
@ -145,7 +145,7 @@ export const webinarFields = [
|
|||
},
|
||||
{
|
||||
displayName: 'Auto Recording',
|
||||
name: 'auto_recording',
|
||||
name: 'autoRecording',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
|
@ -173,14 +173,14 @@ export const webinarFields = [
|
|||
},
|
||||
{
|
||||
displayName: 'Host Video',
|
||||
name: 'host_video',
|
||||
name: 'hostVideo',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when host joins the webinar.',
|
||||
},
|
||||
{
|
||||
displayName: 'Panelists Video',
|
||||
name: 'panelists_video',
|
||||
name: 'panelistsVideo',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Start video when panelists joins the webinar.',
|
||||
|
@ -194,14 +194,14 @@ export const webinarFields = [
|
|||
},
|
||||
{
|
||||
displayName: 'Practice Session',
|
||||
name: 'practice_session',
|
||||
name: 'practiceSession',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Enable Practice session.',
|
||||
},
|
||||
{
|
||||
displayName: 'Registration Type',
|
||||
name: 'registration_type',
|
||||
name: 'registrationType',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
|
@ -438,8 +438,8 @@ export const webinarFields = [
|
|||
/* webinar:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'User ID',
|
||||
name: 'userId',
|
||||
displayName: 'Webinar ID',
|
||||
name: 'webinarId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
|
|
|
@ -603,30 +603,34 @@ export class Zoom implements INodeType {
|
|||
|
||||
}
|
||||
|
||||
if (additionalFields.alternative_hosts) {
|
||||
settings.alternative_hosts = additionalFields.alternative_hosts as string;
|
||||
if (additionalFields.alternativeHosts) {
|
||||
settings.alternative_hosts = additionalFields.alternativeHosts as string;
|
||||
|
||||
}
|
||||
|
||||
if (additionalFields.panelists_video) {
|
||||
settings.panelists_video = additionalFields.panelists_video as boolean;
|
||||
if (additionalFields.panelistsVideo) {
|
||||
settings.panelists_video = additionalFields.panelistsVideo as boolean;
|
||||
|
||||
}
|
||||
if (additionalFields.practice_session) {
|
||||
settings.practice_session = additionalFields.practice_session as boolean;
|
||||
if (additionalFields.hostVideo) {
|
||||
settings.host_video = additionalFields.hostVideo as boolean;
|
||||
|
||||
}
|
||||
if (additionalFields.auto_recording) {
|
||||
settings.auto_recording = additionalFields.auto_recording as string;
|
||||
if (additionalFields.practiceSession) {
|
||||
settings.practice_session = additionalFields.practiceSession as boolean;
|
||||
|
||||
}
|
||||
if (additionalFields.autoRecording) {
|
||||
settings.auto_recording = additionalFields.autoRecording as string;
|
||||
|
||||
}
|
||||
|
||||
if (additionalFields.registration_type) {
|
||||
settings.registration_type = additionalFields.registration_type as number;
|
||||
if (additionalFields.registrationType) {
|
||||
settings.registration_type = additionalFields.registrationType as number;
|
||||
|
||||
}
|
||||
if (additionalFields.approval_type) {
|
||||
settings.approval_type = additionalFields.approval_type as number;
|
||||
if (additionalFields.approvalType) {
|
||||
settings.approval_type = additionalFields.approvalType as number;
|
||||
|
||||
}
|
||||
|
||||
|
@ -823,7 +827,7 @@ export class Zoom implements INodeType {
|
|||
responseData = await zoomApiRequest.call(
|
||||
this,
|
||||
'PATCH',
|
||||
`/users/${webinarId}/webinars`,
|
||||
`webinars/${webinarId}`,
|
||||
body,
|
||||
qs
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue