more formatting

This commit is contained in:
Kévin Michelet 2021-01-02 11:58:22 +01:00
parent 81ff06cf88
commit d4af78f001
1 changed files with 2 additions and 2 deletions

View File

@ -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);