Fix pagination bug for like and comment events
This commit is contained in:
parent
dfe451db70
commit
4751832ad3
8 changed files with 16 additions and 11 deletions
|
@ -24,9 +24,9 @@ class ApiController extends Controller
|
|||
|
||||
$likes = Like::whereProfileId($profile->id)
|
||||
->orderBy('id', 'desc')
|
||||
->take(100)
|
||||
->take(1000)
|
||||
->pluck('status_id');
|
||||
|
||||
|
||||
return response()->json($likes);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue