Skip to content

Commit 581c880

Browse files
author
nejc
committed
Fix: Add missing active_users key to getVersionStatistics method
1 parent 8b03d9d commit 581c880

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Services/VersionService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,14 @@ public function getVersionStatistics(): array
160160
$latestVersion = $this->getLatestPlatformVersion();
161161

162162
if (!$latestVersion) {
163+
$activeUsers = UserVersion::where('last_seen_at', '>=', now()->subDays(30))->count();
164+
163165
return [
164166
'total_users' => $totalUsers,
165167
'users_with_versions' => $userVersions,
166168
'users_on_latest' => 0,
167169
'users_needing_update' => 0,
170+
'active_users' => $activeUsers,
168171
'latest_version' => null,
169172
'total_versions' => PlatformVersion::count(),
170173
'active_versions' => PlatformVersion::where('is_active', true)->count(),

0 commit comments

Comments
 (0)