chore(statistics): change behavior of active users count

This commit is contained in:
veselcraft 2025-03-16 17:47:20 +03:00
parent def76226b7
commit 13b2ab94f7
No known key found for this signature in database
GPG key ID: 9CF0B42766CCF7BA

View file

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