From 731555604e983d2178ef5cc67f509da327c4a436 Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 24 Nov 2020 19:22:53 +0200 Subject: [PATCH] mongo tail --- swarmlab-app/src/run/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 16dd6e5..a91a6a7 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -411,7 +411,7 @@ MongoClient.connect(mongourl, OPTS, function(err, client){ } else { const db = client.db('fluent'); //db.collection('log', onCollection); - var stream = db.log.find({}, { + var stream = db.collection('log').find({}, { tailable: true, awaitdata: true /* other options */