Update BaseApiController.php

pull/6479/head
Shlee 5 months ago committed by GitHub
parent 72fcc173de
commit 1b21f83132
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -69,6 +69,12 @@ class BaseApiController extends Controller
NotificationWarmUserCache::dispatch($pid);
}
$res = collect($res)
->filter(function ($n) {
return isset($n['account'], $n['account']['id']);
})
->values();
return response()->json($res);
}

Loading…
Cancel
Save