mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
Merge branch 'master' of https://github.com/n8n-io/n8n into n8n-io-master
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user