Skip to content

node object is always undefined #1

@masalinas

Description

@masalinas

In the javascript file asociated with your node I have an asyncronous called, so I must use the send fuction of the node object to call the next node, i obtain an error because the node object is undefined always.

This is my code:

Device.find( { where: { deviceHubId: '566d85a22b937b4350d88d19' }, include: 'deviceType' }, function(err, devices) {
    if (err) return err;

    msg.payload = devices;
    node.send(msg);
});

return;

The same code is tested inside a function node and the result is ok, but if use your node with the same code the node object is undefined and crash.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions