mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 10:08:31 -05:00
fix: started and last update in user profile clients
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user