fix(Ghost Node): Fix post tags and add credential tests (#3278)

* Renamed Tag IDs to Tags and changed the value to tag.name

* Updated credentials to use new system

* Nodelinter changes
This commit is contained in:
Jonathan Bennetts
2022-05-14 09:39:28 +01:00
committed by GitHub
parent 7090a79b5d
commit a14d85ea48
7 changed files with 79 additions and 46 deletions

View File

@@ -6,6 +6,7 @@ export const postOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
noDataExpression: true,
type: 'options',
displayOptions: {
show: {
@@ -30,11 +31,12 @@ export const postOperations: INodeProperties[] = [
},
],
default: 'get',
description: 'The operation to perform.',
description: 'The operation to perform',
},
{
displayName: 'Operation',
name: 'operation',
noDataExpression: true,
type: 'options',
displayOptions: {
show: {
@@ -74,7 +76,7 @@ export const postOperations: INodeProperties[] = [
},
],
default: 'get',
description: 'The operation to perform.',
description: 'The operation to perform',
},
];
@@ -256,12 +258,6 @@ export const postFields: INodeProperties[] = [
type: 'string',
default: '',
},
{
displayName: 'Open Graph Title',
name: 'og_title',
type: 'string',
default: '',
},
{
displayName: 'Open Graph Image',
name: 'og_image',
@@ -270,6 +266,12 @@ export const postFields: INodeProperties[] = [
description: 'URL of the image',
},
{
displayName: 'Open Graph Title',
name: 'og_title',
type: 'string',
default: '',
},
{
displayName: 'Published At',
name: 'published_at',
@@ -303,7 +305,7 @@ export const postFields: INodeProperties[] = [
default: 'draft',
},
{
displayName: 'Tags IDs',
displayName: 'Tags',
name: 'tags',
type: 'multiOptions',
typeOptions: {
@@ -365,7 +367,7 @@ export const postFields: INodeProperties[] = [
displayName: 'By',
name: 'by',
type: 'options',
default: '',
default: 'id',
required: true,
options: [
{
@@ -846,12 +848,6 @@ export const postFields: INodeProperties[] = [
type: 'string',
default: '',
},
{
displayName: 'Open Graph Title',
name: 'og_title',
type: 'string',
default: '',
},
{
displayName: 'Open Graph Image',
name: 'og_image',
@@ -859,6 +855,12 @@ export const postFields: INodeProperties[] = [
default: '',
description: 'URL of the image',
},
{
displayName: 'Open Graph Title',
name: 'og_title',
type: 'string',
default: '',
},
{
displayName: 'Published At',
name: 'published_at',
@@ -892,7 +894,7 @@ export const postFields: INodeProperties[] = [
default: 'draft',
},
{
displayName: 'Tags IDs',
displayName: 'Tags',
name: 'tags',
type: 'multiOptions',
typeOptions: {