15313670163 2 nedēļas atpakaļ
vecāks
revīzija
19120040fe
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      app/JsonRpc/NewsService.php

+ 2 - 2
app/JsonRpc/NewsService.php

@@ -486,7 +486,7 @@ class NewsService implements NewsServiceInterface
         ->orderBy("updated_at", "desc")
         ->limit($data['pageSize'])
         ->offset(($data['page'] - 1) * $data['pageSize'])
-        ->get()->all()
+        ->get()
         ->map(function ($article ) use ($data) {
             $catid = $article->catid ?? 0;
             $pinyin = '';
@@ -866,7 +866,7 @@ class NewsService implements NewsServiceInterface
             ->orderBy("updated_at", "desc")
             ->offset(($data['page'] - 1) * $data['pageSize'])
             ->limit($data['pageSize'])
-            ->get()->all()
+            ->get()
             ->map(function ($article ) use ($data) {
                 $catid = $article->catid ?? 0;
                 $pinyin = '';