mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
dd685209d9
commit
a9d669411c
@ -53,7 +53,7 @@ module.exports = function(RED) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
node.status({fill:"red",shape:"ring",text:RED._("mongodb.status.error")});
|
node.status({fill:"red",shape:"ring",text:RED._("mongodb.status.error")});
|
||||||
node.error(err);
|
node.error(err);
|
||||||
node.tout = setTimeout(connectToDB(), 10000);
|
node.tout = setTimeout(connectToDB, 10000);
|
||||||
} else {
|
} else {
|
||||||
node.status({fill:"green",shape:"dot",text:RED._("mongodb.status.connected")});
|
node.status({fill:"green",shape:"dot",text:RED._("mongodb.status.connected")});
|
||||||
node.clientDb = db;
|
node.clientDb = db;
|
||||||
@ -168,7 +168,7 @@ module.exports = function(RED) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
node.status({fill:"red",shape:"ring",text:RED._("mongodb.status.error")});
|
node.status({fill:"red",shape:"ring",text:RED._("mongodb.status.error")});
|
||||||
node.error(err);
|
node.error(err);
|
||||||
node.tout = setTimeout(connectToDB(), 10000);
|
node.tout = setTimeout(connectToDB, 10000);
|
||||||
} else {
|
} else {
|
||||||
node.status({fill:"green",shape:"dot",text:RED._("mongodb.status.connected")});
|
node.status({fill:"green",shape:"dot",text:RED._("mongodb.status.connected")});
|
||||||
node.clientDb = db;
|
node.clientDb = db;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-mongodb",
|
"name" : "node-red-node-mongodb",
|
||||||
"version" : "0.0.9",
|
"version" : "0.0.10",
|
||||||
"description" : "Node-RED nodes to talk to an Mongo database",
|
"description" : "Node-RED nodes to talk to an Mongo database",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"mongodb" : "^2.2.11"
|
"mongodb" : "^2.2.11"
|
||||||
|
Loading…
Reference in New Issue
Block a user