mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
formatter issue
This commit is contained in:
parent
a600ef03d6
commit
81ff06cf88
@ -76,7 +76,7 @@ module.exports = function(RED) {
|
|||||||
var connectToDB = function() {
|
var connectToDB = function() {
|
||||||
MongoClient.connect(node.mongoConfig.url, function(err, client) {
|
MongoClient.connect(node.mongoConfig.url, function(err, client) {
|
||||||
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")});
|
||||||
if (noerror) { node.error(err); }
|
if (noerror) { node.error(err); }
|
||||||
noerror = false;
|
noerror = false;
|
||||||
node.tout = setTimeout(connectToDB, 10000);
|
node.tout = setTimeout(connectToDB, 10000);
|
||||||
|
Loading…
Reference in New Issue
Block a user