mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
more formatting
This commit is contained in:
parent
81ff06cf88
commit
d4af78f001
@ -142,7 +142,7 @@ module.exports = function(RED) {
|
||||
this.multi = n.multi || false;
|
||||
this.operation = n.operation || "find";
|
||||
this.mongoConfig = RED.nodes.getNode(this.mongodb);
|
||||
this.status({fill:"grey",shape:"ring",text: RED._("mongodb.status.connecting")});
|
||||
this.status({fill:"grey",shape:"ring",text:RED._("mongodb.status.connecting")});
|
||||
var node = this;
|
||||
var noerror = true;
|
||||
|
||||
@ -150,7 +150,7 @@ module.exports = function(RED) {
|
||||
console.log("connecting: " + node.mongoConfig.url);
|
||||
MongoClient.connect(node.mongoConfig.url, function(err,client) {
|
||||
if (err) {
|
||||
node.status({ fill: "red", shape: "ring", text: RED._("mongodb.status.error") });
|
||||
node.status({fill:"red",shape:"ring",text:RED._("mongodb.status.error")});
|
||||
if (noerror) { node.error(err); }
|
||||
noerror = false;
|
||||
node.tout = setTimeout(connectToDB, 10000);
|
||||
|
Loading…
Reference in New Issue
Block a user