diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index fb2c415de..c8bf8c702 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -2028,11 +2028,15 @@ class ApiV1Controller extends Controller ->latest() ->limit($limit) ->pluck('status_id') + ->filter(function($i) { + return StatusService::get($i); + }) ->map(function ($i) { return StatusService::get($i); }) ->filter() - ->all(); + ->values() + ->toArray(); return response()->json($res, 200, [], JSON_PRETTY_PRINT); }