From 34b57783c46d44b059098a36d758d7f3ed53e0ec Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 24 Sep 2022 23:38:08 -0600 Subject: [PATCH] Update v1.1 api --- app/Http/Controllers/Api/ApiV1Dot1Controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Api/ApiV1Dot1Controller.php b/app/Http/Controllers/Api/ApiV1Dot1Controller.php index 66474e145..7dff38cbc 100644 --- a/app/Http/Controllers/Api/ApiV1Dot1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Dot1Controller.php @@ -265,6 +265,7 @@ class ApiV1Dot1Controller extends Controller $activity = AccountLog::whereUserId($user->id) ->whereAction('auth.login') ->orderBy('created_at', 'desc') + ->groupBy('ip_address') ->limit(10) ->get() ->map(function($item) use($agent, $currentIp) {