mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +00:00
feat(Google Calendar Node): Next occurrence property in recurring events (#8444)
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user