mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
⚡ Minor improvements to MQTT Trigger-Node
This commit is contained in:
parent
b77fd59303
commit
23f8b2b4df
|
@ -3,10 +3,10 @@ import {
|
|||
} from 'n8n-core';
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
ITriggerResponse,
|
||||
IDataObject,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import * as mqtt from 'mqtt';
|
||||
|
@ -131,8 +131,7 @@ export class MqttTrigger implements INodeType {
|
|||
result = message;
|
||||
}
|
||||
|
||||
self.emit([self.helpers.returnJsonArray([result],
|
||||
)]);
|
||||
self.emit([self.helpers.returnJsonArray([result])]);
|
||||
resolve(true);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue