diff --git a/app/Http/Controllers/BeatmapDiscussionPostsController.php b/app/Http/Controllers/BeatmapDiscussionPostsController.php index 98e0cf7b46b..541b9e8c70d 100644 --- a/app/Http/Controllers/BeatmapDiscussionPostsController.php +++ b/app/Http/Controllers/BeatmapDiscussionPostsController.php @@ -73,7 +73,7 @@ public function destroy($id) * @queryParam user integer The `id` of the [User](#user). * @queryParam with_deleted boolean This param has no effect as api calls do not currently receive group permissions. No-example */ - #[Limit(20, 5), Page, Sort('IdSort')] + #[Limit(BeatmapDiscussionPost::PER_PAGE, 5), Page, Sort('IdSort')] public function index() { $bundle = new BeatmapsetDiscussionPostsBundle(request()->all()); diff --git a/app/Http/Controllers/BeatmapDiscussionsController.php b/app/Http/Controllers/BeatmapDiscussionsController.php index 61ba0b8d792..edb1eb080ea 100644 --- a/app/Http/Controllers/BeatmapDiscussionsController.php +++ b/app/Http/Controllers/BeatmapDiscussionsController.php @@ -102,7 +102,7 @@ public function destroy($id) * @queryParam user integer The `id` of the [User](#user). * @queryParam with_deleted boolean This param has no effect as api calls do not currently receive group permissions. No-example */ - #[Limit(20, 5), Page, Sort('IdSort')] + #[Limit(BeatmapDiscussion::PER_PAGE, 5), Page, Sort('IdSort')] public function index() { $bundle = new BeatmapsetDiscussionsBundle(request()->all()); diff --git a/app/Http/Controllers/BeatmapsetDiscussionVotesController.php b/app/Http/Controllers/BeatmapsetDiscussionVotesController.php index 503068d68c5..e1a9df09312 100644 --- a/app/Http/Controllers/BeatmapsetDiscussionVotesController.php +++ b/app/Http/Controllers/BeatmapsetDiscussionVotesController.php @@ -9,6 +9,7 @@ use App\Docs\Attributes\Page; use App\Docs\Attributes\Sort; use App\Libraries\BeatmapsetDiscussionVotesBundle; +use App\Models\BeatmapDiscussionVote; /** * @group Beatmapset Discussions @@ -49,7 +50,7 @@ public function __construct() * @queryParam user integer The `id` of the [User](#user) giving the votes. * @queryParam with_deleted boolean This param has no effect as api calls do not currently receive group permissions. No-example */ - #[Limit(20, 5), Page, Sort('IdSort')] + #[Limit(BeatmapDiscussionVote::PER_PAGE, 5), Page, Sort('IdSort')] public function index() { $bundle = new BeatmapsetDiscussionVotesBundle(request()->all());