More docs, total user count MCI and stat
This commit is contained in:
13
core/user.js
13
core/user.js
@@ -793,6 +793,19 @@ module.exports = class User {
|
||||
);
|
||||
}
|
||||
|
||||
static getUserCount(cb) {
|
||||
userDb.get(
|
||||
`SELECT count() AS user_count
|
||||
FROM user;`,
|
||||
(err, row) => {
|
||||
if(err) {
|
||||
return cb(err);
|
||||
}
|
||||
return cb(null, row.user_count);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
static getUserList(options, cb) {
|
||||
const userList = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user