Ken 9 godzin temu
rodzic
commit
b0f624159b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Services/UserService.php

+ 1 - 1
app/Services/UserService.php

@@ -104,7 +104,7 @@ class UserService extends BaseService
         $paginator = static::$MODEL::with(['wallet'])
             ->join('wallets', 'users.member_id', '=', 'wallets.member_id')
             ->where(self::getWhere($search))
-            ->orderByDesc('created_at')->paginate($limit);
+            ->orderByDesc('users.created_at')->paginate($limit);
         return ['total' => $paginator->total(), 'data' => $paginator->items()];
     }