lgfa29 / node-red-node-cf-cloudant

Cloudant node for Node-RED
2 stars 18 forks source link

"cloudant in" for attachment retreival #3

Closed oprince closed 8 years ago

oprince commented 8 years ago

Hi,

I was successfully using the "cloudant in" node-red node for attachment retrieval with an NPM installation done on June 15. It stopped working with the latest code published in NPM. node version remains the same in package.json, but the code in 77-cloudant-cf.js is now different.

The code I'm using in a node-red function node is as follows:

var query = { id: msg.payload[0]._id,
    attachmentName: attachementName,
    attachmentType: contentType
}
msg.payload = query;

Can you please check what went wrong ? Thanks!

oprince commented 8 years ago

Attachment retrieval was enabled due to code changes done here.