fix: started and last update in user profile clients

This commit is contained in:
Roardom
2023-01-30 23:57:15 -06:00
parent 315609a74b
commit 6a3de62bdb
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ class UserController extends Controller
$clients = $user->peers()
->select('agent', 'port')
->selectRaw('INET6_NTOA(ip) as ip, MIN(created_at), MAX(updated_at), COUNT(*) as num_peers')
->selectRaw('INET6_NTOA(ip) as ip, MIN(created_at) as created_at, MAX(updated_at) as updated_at, COUNT(*) as num_peers')
->groupBy(['ip', 'port', 'agent'])
->get();