feat(Google Calendar Node): Next occurrence property in recurring events (#8444)

This commit is contained in:
Michael Kret
2024-01-26 12:36:57 +00:00
committed by GitHub
parent 1db35c18e9
commit bf11c7c1bd
4 changed files with 77 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ import { NodeApiError, NodeOperationError } from 'n8n-workflow';
import moment from 'moment-timezone';
import { v4 as uuid } from 'uuid';
import {
addNextOccurrence,
encodeURIComponentOnce,
getCalendars,
getTimezones,
@@ -376,6 +377,10 @@ export class GoogleCalendar implements INodeType {
{},
qs,
);
if (responseData) {
responseData = addNextOccurrence([responseData]);
}
}
//https://developers.google.com/calendar/v3/reference/events/list
if (operation === 'getAll') {
@@ -440,6 +445,10 @@ export class GoogleCalendar implements INodeType {
);
responseData = responseData.items;
}
if (responseData) {
responseData = addNextOccurrence(responseData);
}
}
//https://developers.google.com/calendar/v3/reference/events/patch
if (operation === 'update') {