chore(statistics): change behavior of active users count (#1254)

This commit is contained in:
Vladimir Barinov 2025-03-16 17:53:58 +03:00 committed by GitHub
parent 9ef7d2d7c4
commit 4815186b79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,7 +157,7 @@ class Users
{
return (object) [
"all" => (clone $this->users)->count('*'),
"active" => (clone $this->users)->where("online > 0")->count('*'),
"active" => (clone $this->users)->where("online >= ?", time() - MONTH)->count('*'),
"online" => (clone $this->users)->where("online >= ?", time() - 900)->count('*'),
];
}