From 4e28e575cf3efa56a425ca8dd821dfc8ae1dc086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 6 Oct 2019 22:08:52 -0400 Subject: [PATCH] fix: mongo collection stats --- src/database/mongo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/mongo.js b/src/database/mongo.js index 1f095bd44e..b5ac5019ce 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -158,7 +158,7 @@ mongoModule.info = async function (db) { async function getCollectionStats(db) { const items = await db.listCollections().toArray(); - return await Promise.all(items.map(collection => db.collection(collection.name).stats)); + return await Promise.all(items.map(collection => db.collection(collection.name).stats())); } mongoModule.close = function (callback) {