Improvements to Mailchimp-Node

This commit is contained in:
ricardo
2020-06-13 22:37:03 -04:00
parent 7f76ee9bcd
commit e859b27a89
4 changed files with 36 additions and 35 deletions

View File

@@ -72,7 +72,7 @@ export class Mailchimp implements INodeType {
displayOptions: {
show: {
authentication: [
'accessToken',
'apiKey',
],
},
},
@@ -96,15 +96,15 @@ export class Mailchimp implements INodeType {
type: 'options',
options: [
{
name: 'Access Token',
value: 'accessToken',
name: 'API Key',
value: 'apiKey',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'accessToken',
default: 'apiKey',
description: 'Method of authentication.',
},
{
@@ -1571,7 +1571,7 @@ export class Mailchimp implements INodeType {
responseData = { success: true };
}
}
if (Array.isArray(responseData)) {
returnData.push.apply(returnData, responseData as IDataObject[]);
} else {