Merge branch 'master' of https://github.com/n8n-io/n8n into n8n-io-master

This commit is contained in:
Ricardo Georgel
2021-07-16 11:28:08 -03:00
252 changed files with 22348 additions and 2279 deletions

View File

@@ -95,6 +95,13 @@ export class KafkaTrigger implements INodeType {
default: false,
description: 'Allow sending message to a previously non exisiting topic .',
},
{
displayName: 'Read messages from beginning',
name: 'fromBeginning',
type: 'boolean',
default: true,
description: 'Read message from beginning .',
},
{
displayName: 'JSON Parse Message',
name: 'jsonParseMessage',
@@ -173,12 +180,12 @@ export class KafkaTrigger implements INodeType {
await consumer.connect();
await consumer.subscribe({ topic, fromBeginning: true });
const options = this.getNodeParameter('options', {}) as IDataObject;
await consumer.subscribe({ topic, fromBeginning: (options.fromBeginning)? true : false });
const self = this;
const options = this.getNodeParameter('options', {}) as IDataObject;
const useSchemaRegistry = this.getNodeParameter('useSchemaRegistry', 0) as boolean;
const schemaRegistryUrl = this.getNodeParameter('schemaRegistryUrl', 0) as string;