feat: admin tags (#1452)

This commit is contained in:
Nicolas Giard
2020-02-09 00:49:32 -05:00
committed by GitHub
parent 90fbc62917
commit 5c20f585a4
9 changed files with 311 additions and 2 deletions

View File

@@ -372,6 +372,10 @@ module.exports = {
async usersTotal () {
const total = await WIKI.models.users.query().count('* as total').first()
return _.toSafeInteger(total.total)
},
async tagsTotal () {
const total = await WIKI.models.tags.query().count('* as total').first()
return _.toSafeInteger(total.total)
}
}
}