More docs, total user count MCI and stat

This commit is contained in:
Bryan Ashby
2022-05-01 19:58:00 -06:00
parent 44505f664a
commit d0db38a544
9 changed files with 57 additions and 5 deletions

View File

@@ -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 = [];