2018-06-15 20:40:53 -05:00
|
|
|
import Meta from '../../../models/meta';
|
2018-11-01 23:47:44 -05:00
|
|
|
import define from '../define';
|
2017-08-12 01:17:03 -05:00
|
|
|
|
2018-11-01 23:47:44 -05:00
|
|
|
export const meta = {
|
|
|
|
requireCredential: false,
|
|
|
|
|
|
|
|
desc: {
|
|
|
|
'en-US': 'Get the instance\'s statistics'
|
|
|
|
},
|
|
|
|
|
|
|
|
params: {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default define(meta, () => new Promise(async (res, rej) => {
|
2018-06-15 20:40:53 -05:00
|
|
|
const meta = await Meta.findOne();
|
2017-08-12 01:17:03 -05:00
|
|
|
|
2018-07-07 13:51:09 -05:00
|
|
|
res(meta ? meta.stats : {});
|
2018-11-01 23:47:44 -05:00
|
|
|
}));
|