Fixed dbstats command in server console.

This commit is contained in:
Ylian Saint-Hilaire 2022-06-03 09:52:56 -07:00
parent d88f35c96a
commit dc3beab78f
1 changed files with 1 additions and 1 deletions

View File

@ -6659,7 +6659,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
}
function serverUserCommandDbStats(cmdData) {
parent.parent.db.getStats(function (stats) {
parent.parent.db.getDbStats(function (stats) {
var r2 = '';
for (var i in stats) { r2 += (i + ': ' + stats[i] + '\r\n'); }
try { ws.send(JSON.stringify({ action: 'serverconsole', value: r2, tag: cmdData.command.tag })); } catch (ex) { }