Skip to content

Node.js based forum software built for the modern web

remove dataFileVersion it breaks templates

Baris Soner Usakli746119bd45cc
diff --git a/src/database/mongo.js b/src/database/mongo.js
index 0c7552ff2f..149741d715 100644
--- a/src/database/mongo.js
+++ b/src/database/mongo.js
@@ -130,6 +130,10 @@
module.info = function(callback) {
db.stats({scale:1024}, function(err, stats) {
+ // TODO : if this it not deleted the templates break,
+ // it is a nested object inside stats
+ delete stats.dataFileVersion;
+
stats.avgObjSize = (stats.avgObjSize / 1024).toFixed(2);
stats.raw = JSON.stringify(stats, null, 4);