Skip to content

Commit

Permalink
fix: rrequired fields in update event zoho calendar node
Browse files Browse the repository at this point in the history
  • Loading branch information
horpeazy committed May 22, 2024
1 parent 4be4688 commit 027575f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,13 @@ export class DcsZohoCalendar implements INodeType {
getResourceIdNameFields('calendars' as ZohoCalendarModule).name,
i,
) as string;
const etag = this.getNodeParameter('eTag', i) as string;
const dateandtime = this.getNodeParameter('dateandtime', i) as string;
body.etag = etag;
body.dateandtime = dateandtime;

const uriEncodedBody = JSON.stringify(body);
const qs = {eventdata: uriEncodedBody};
const qs = { eventdata: uriEncodedBody };
responseData = await zohoClient().calendar().passRequestAsProxy({
method: 'PUT',
url: `calendars/${calendarId}/events/${recordId}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,20 @@ export const eventFields: INodeProperties[] = [
displayOptions: {
show: {
resource: ['events'],
operation: ['delete'],
operation: ['delete', 'update'],
},
},
},
{
displayName: `Date and Time`,
name: `dateandtime`,
type: 'string',
required: true,
default: '',
displayOptions: {
show: {
resource: ['events'],
operation: ['update'],
},
},
},
Expand Down

0 comments on commit 027575f

Please sign in to comment.