mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
fix(Google Calendar Trigger Node): Fix issue preventing birthday and holiday calendars from working (#7832)
Github issue / Community forum post (link here to close automatically): https://community.n8n.io/t/issue-with-some-google-calendars/33411 --------- Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
parent
d5488725a8
commit
38f24a6184
|
@ -9,7 +9,12 @@ import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
|||
|
||||
import moment from 'moment';
|
||||
|
||||
import { getCalendars, googleApiRequest, googleApiRequestAllItems } from './GenericFunctions';
|
||||
import {
|
||||
encodeURIComponentOnce,
|
||||
getCalendars,
|
||||
googleApiRequest,
|
||||
googleApiRequestAllItems,
|
||||
} from './GenericFunctions';
|
||||
|
||||
export class GoogleCalendarTrigger implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
|
@ -132,7 +137,9 @@ export class GoogleCalendarTrigger implements INodeType {
|
|||
async poll(this: IPollFunctions): Promise<INodeExecutionData[][] | null> {
|
||||
const poolTimes = this.getNodeParameter('pollTimes.item', []) as IDataObject[];
|
||||
const triggerOn = this.getNodeParameter('triggerOn', '') as string;
|
||||
const calendarId = this.getNodeParameter('calendarId', '', { extractValue: true }) as string;
|
||||
const calendarId = encodeURIComponentOnce(
|
||||
this.getNodeParameter('calendarId', '', { extractValue: true }) as string,
|
||||
);
|
||||
const webhookData = this.getWorkflowStaticData('node');
|
||||
const matchTerm = this.getNodeParameter('options.matchTerm', '') as string;
|
||||
|
||||
|
|
Loading…
Reference in a new issue