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

@@ -29,7 +29,7 @@ export class Ghost implements INodeType {
description: INodeTypeDescription = {
displayName: 'Ghost',
name: 'ghost',
icon: 'file:ghost.png',
icon: 'file:ghost.svg',
group: ['input'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
@@ -91,8 +91,9 @@ export class Ghost implements INodeType {
value: 'post',
},
],
noDataExpression: true,
default: 'post',
description: 'The resource to operate on.',
description: 'The resource to operate on',
},
...postOperations,
...postFields,
@@ -137,7 +138,7 @@ export class Ghost implements INodeType {
for (const tag of tags) {
returnData.push({
name: tag.name,
value: tag.id,
value: tag.name,
});
}
return returnData;