We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861ca85 commit 592720cCopy full SHA for 592720c
77-cloudant-cf.js
@@ -247,15 +247,18 @@ module.exports = function(RED) {
247
function sendDocumentOnPayload(err, body, msg) {
248
if (!err) {
249
msg.payload = body;
250
- node.send(msg);
251
} else {
+ msg.payload = null;
252
+
253
if (err.description === "missing") {
254
node.warn("Document '" + node.payloadIn+ "' not found in database '" +
255
node.database + "'.");
256
257
node.error(err.reason);
258
}
259
260
261
+ node.send(msg);
262
263
264
RED.nodes.registerType("cloudant in", CloudantInNode);
0 commit comments