Merge branch 'oauth-support' into feature/google-calendar-node

This commit is contained in:
Jan 2020-03-16 14:37:10 +01:00 committed by GitHub
commit 3c7fe2da97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -316,7 +316,7 @@ export const eventFields = [
loadOptionsMethod: 'getTimezones',
},
default: '',
description: 'The timezone the event will have set. By default events are schedule on n8n timezone '
description: 'The timezone the event will have set. By default events are schedule on timezone set in n8n.'
},
{
displayName: 'Visibility',
@ -333,16 +333,16 @@ export const eventFields = [
value: 'default',
description: ' Uses the default visibility for events on the calendar.',
},
{
name: 'Public',
value: 'public',
description: 'The event is public and event details are visible to all readers of the calendar.',
},
{
name: 'Private',
value: 'private',
description: 'The event is private and only event attendees may view event details.',
},
{
name: 'Public',
value: 'public',
description: 'The event is public and event details are visible to all readers of the calendar.',
},
],
default: 'default',
description: 'Visibility of the event.',

View file

@ -89,7 +89,7 @@ export class GoogleCalendar implements INodeType {
async getColors(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
const { calendar } = await googleApiRequest.call(this, 'GET', '/calendar/v3/colors');
for (let key of Object.keys(calendar)) {
for (const key of Object.keys(calendar)) {
const colorName = calendar[key].background;
const colorId = key;
returnData.push({