1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed and improved minified mode.

This commit is contained in:
Ylian Saint-Hilaire 2020-05-01 20:16:57 -07:00
parent fbc5e23ed8
commit 8a624bb946
33 changed files with 2980 additions and 2326 deletions

View file

@ -917,6 +917,8 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
try { info.cpuUsage = process.cpuUsage(); } catch (ex) { }
try { info.warnings = parent.parent.getServerWarnings(); } catch (ex) { }
try { info.database = ["Unknown", "NeDB", "MongoJS", "MongoDB", "MariaDB", "MySQL"][parent.parent.db.databaseType]; } catch (ex) { }
try { info.productionMode = ((process.env.NODE_ENV != null) && (process.env.NODE_ENV == 'production')); } catch (ex) { }
r = JSON.stringify(info, null, 4);
break;
}