fix: mongo collection stats

This commit is contained in:
Barış Soner Uşaklı
2019-10-06 22:08:52 -04:00
parent 02d38caf47
commit 4e28e575cf

View File

@@ -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) {