fix: time cutoff and lang string

This commit is contained in:
Barış Soner Uşaklı
2019-09-20 23:03:31 -04:00
parent 44cd71895b
commit 5b8550f060
2 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ usersController.getUsers = async function (set, uid, query) {
usersController.getUsersAndCount = async function (set, uid, start, stop) {
async function getCount() {
if (set === 'users:online') {
return await db.sortedSetCount('users:online', Date.now() - 300000, '+inf');
return await db.sortedSetCount('users:online', Date.now() - (meta.config.onlineCutoff * 60000), '+inf');
} else if (set === 'users:banned' || set === 'users:flags') {
return await db.sortedSetCard(set);
}