Update ApiV1StoryController, fix viewer pagination

Fix cursor pagination
pull/6149/head
Daniel Supernault 3 months ago
parent 2e0b3829a3
commit 5d4674daa4
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -765,7 +765,8 @@ class StoryApiV1Controller extends Controller
$viewers = StoryView::whereStoryId($story->id)
->orderByDesc('id')
->cursorPaginate(10);
->cursorPaginate(10)
->withQueryString();
return StoryViewResource::collection($viewers);
}

Loading…
Cancel
Save