feat: on online users page override timeago cutoff to 24 hours

This commit is contained in:
Barış Soner Uşaklı
2022-03-11 23:42:46 -05:00
parent df8ea4bad3
commit 7c946570d5
3 changed files with 12 additions and 5 deletions

View File

@@ -61,6 +61,7 @@ usersController.getOnlineUsers = async function (req, res) {
}
userData.anonymousUserCount = guests + hiddenCount;
userData.timeagoCutoff = 1000 * 60 * 60 * 24;
await render(req, res, userData);
};