mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix: Google Contacts node warm up request, Google Calendar node events>getAll fields option (#10700)
This commit is contained in:
@@ -92,6 +92,19 @@ export class GoogleContacts implements INodeType {
|
||||
let responseData;
|
||||
const resource = this.getNodeParameter('resource', 0);
|
||||
const operation = this.getNodeParameter('operation', 0);
|
||||
|
||||
// Warmup cache
|
||||
// https://developers.google.com/people/v1/contacts#protocol_1
|
||||
if (resource === 'contact' && operation === 'getAll') {
|
||||
await googleApiRequest.call(this, 'GET', '/people:searchContacts', undefined, {
|
||||
query: '',
|
||||
readMask: 'names',
|
||||
});
|
||||
await googleApiRequest.call(this, 'GET', '/people/me/connections', undefined, {
|
||||
personFields: 'names',
|
||||
});
|
||||
}
|
||||
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
if (resource === 'contact') {
|
||||
|
||||
Reference in New Issue
Block a user