1
0
Эх сурвалжийг харах

Update ApiV1StoryController, fix viewer pagination

Fix cursor pagination
Daniel Supernault 3 долоо хоног өмнө
parent
commit
5d4674daa4

+ 2 - 1
app/Http/Controllers/Stories/StoryApiV1Controller.php

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