mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -135,17 +135,15 @@ mongoModule.info = async function (db) {
|
||||
stats.serverStatusError = serverStatusError;
|
||||
const scale = 1024 * 1024 * 1024;
|
||||
|
||||
listCollections = listCollections.map(function (collectionInfo) {
|
||||
return {
|
||||
name: collectionInfo.ns,
|
||||
count: collectionInfo.count,
|
||||
size: collectionInfo.size,
|
||||
avgObjSize: collectionInfo.avgObjSize,
|
||||
storageSize: collectionInfo.storageSize,
|
||||
totalIndexSize: collectionInfo.totalIndexSize,
|
||||
indexSizes: collectionInfo.indexSizes,
|
||||
};
|
||||
});
|
||||
listCollections = listCollections.map(collectionInfo => ({
|
||||
name: collectionInfo.ns,
|
||||
count: collectionInfo.count,
|
||||
size: collectionInfo.size,
|
||||
avgObjSize: collectionInfo.avgObjSize,
|
||||
storageSize: collectionInfo.storageSize,
|
||||
totalIndexSize: collectionInfo.totalIndexSize,
|
||||
indexSizes: collectionInfo.indexSizes,
|
||||
}));
|
||||
|
||||
stats.mem = serverStatus.mem || { resident: 0, virtual: 0, mapped: 0 };
|
||||
stats.mem.resident = (stats.mem.resident / 1024).toFixed(3);
|
||||
|
||||
Reference in New Issue
Block a user