revert exam index seedbouns

This commit is contained in:
xiaomlove
2022-02-22 13:34:50 +08:00
parent e9d6aac31a
commit 411d266cbd
28 changed files with 30 additions and 23 deletions

View File

@@ -84,7 +84,10 @@ class TorrentRepository extends BaseRepository
$query->orderBy($sortField, $sortType);
$with = ['user'];
$torrents = $query->with($with)->paginate();
$torrents = $query->with($with)
->orderBy('pos_state', 'desc')
->orderBy('id', 'desc')
->paginate();
return $torrents;
}