mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
hotfixes
This commit is contained in:
parent
e677fe4857
commit
5f48cb39ff
@ -70,18 +70,21 @@ final class DefaultAnimeRepository extends DatabaseRepository implements AnimeRe
|
||||
public function orderByPopularity(): EloquentBuilder|ScoutBuilder
|
||||
{
|
||||
return $this
|
||||
->queryable()
|
||||
->orderBy("members", "desc");
|
||||
}
|
||||
|
||||
public function orderByFavoriteCount(): EloquentBuilder|ScoutBuilder
|
||||
{
|
||||
return $this
|
||||
->queryable()
|
||||
->orderBy("favorites", "desc");
|
||||
}
|
||||
|
||||
public function orderByRank(): EloquentBuilder|ScoutBuilder
|
||||
{
|
||||
return $this->exceptItemsWithAdultRating()
|
||||
return $this
|
||||
->queryable()
|
||||
->whereNotNull("rank")
|
||||
->where("rank", ">", 0)
|
||||
->orderBy("rank");
|
||||
|
Loading…
x
Reference in New Issue
Block a user