From 4f3b1b6bfed81bda74b5d500bca708e0026881bd Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 11 Nov 2020 23:01:34 +0200 Subject: [PATCH] add mongodb --- swarmlab-app/src/run/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 1bb09a3..490e35b 100644 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -2,7 +2,7 @@ var path = require('path'); var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); -vat MongoClient = require('mongodb').MongoClient; +var MongoClient = require('mongodb').MongoClient; //const socketAuth = require('socketio-auth'); @@ -79,6 +79,7 @@ MongoClient.connect(mongourl, function(err, database) { dbName.collection("devel_log").find({}, function(err, docs) { + console.log("connected mongo"); docs.each(function(err, doc) { if(doc) { console.log(doc);