mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix issue that RabbitMQ Trigger node did reuse same item
This commit is contained in:
@@ -107,15 +107,15 @@ export class RabbitMQTrigger implements INodeType {
|
|||||||
|
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
const item: INodeExecutionData = {
|
|
||||||
json: {},
|
|
||||||
};
|
|
||||||
|
|
||||||
const startConsumer = async () => {
|
const startConsumer = async () => {
|
||||||
await channel.consume(queue, async (message: IDataObject) => {
|
await channel.consume(queue, async (message: IDataObject) => {
|
||||||
if (message !== null) {
|
if (message !== null) {
|
||||||
let content: IDataObject | string = message!.content!.toString();
|
let content: IDataObject | string = message!.content!.toString();
|
||||||
|
|
||||||
|
const item: INodeExecutionData = {
|
||||||
|
json: {},
|
||||||
|
};
|
||||||
|
|
||||||
if (options.contentIsBinary === true) {
|
if (options.contentIsBinary === true) {
|
||||||
item.binary = {
|
item.binary = {
|
||||||
data: await this.helpers.prepareBinaryData(message.content),
|
data: await this.helpers.prepareBinaryData(message.content),
|
||||||
|
|||||||
Reference in New Issue
Block a user