Browse Source

add mongodb

master
zeus 4 years ago
parent
commit
d010bcee56
  1. 19
      swarmlab-app/src/run/app.js

19
swarmlab-app/src/run/app.js

@ -79,18 +79,13 @@ MongoClient.connect(mongourl, function(err, database) {
dbName.collection("devel_log").find({}, function(err, docs) {
docs.each(function(err, doc) {
if(doc) {
console.log(doc);
}
else {
res.end();
}
});
docs.each(function(err, doc) {
if(doc) {
console.log(doc);
} else {
console.log('error');
}
});
});
/*

Loading…
Cancel
Save