Skip to content

Commit b5d7347

Browse files
committed
use the const
1 parent 6d42a44 commit b5d7347

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/Http/Controllers/BeatmapDiscussionPostsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function destroy($id)
7373
* @queryParam user integer The `id` of the [User](#user).
7474
* @queryParam with_deleted boolean This param has no effect as api calls do not currently receive group permissions. No-example
7575
*/
76-
#[Limit(20, 5), Page, Sort('IdSort')]
76+
#[Limit(BeatmapDiscussionPost::PER_PAGE, 5), Page, Sort('IdSort')]
7777
public function index()
7878
{
7979
$bundle = new BeatmapsetDiscussionPostsBundle(request()->all());

app/Http/Controllers/BeatmapDiscussionsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function destroy($id)
102102
* @queryParam user integer The `id` of the [User](#user).
103103
* @queryParam with_deleted boolean This param has no effect as api calls do not currently receive group permissions. No-example
104104
*/
105-
#[Limit(20, 5), Page, Sort('IdSort')]
105+
#[Limit(BeatmapDiscussion::PER_PAGE, 5), Page, Sort('IdSort')]
106106
public function index()
107107
{
108108
$bundle = new BeatmapsetDiscussionsBundle(request()->all());

app/Http/Controllers/BeatmapsetDiscussionVotesController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use App\Docs\Attributes\Page;
1010
use App\Docs\Attributes\Sort;
1111
use App\Libraries\BeatmapsetDiscussionVotesBundle;
12+
use App\Models\BeatmapDiscussionVote;
1213

1314
/**
1415
* @group Beatmapset Discussions
@@ -49,7 +50,7 @@ public function __construct()
4950
* @queryParam user integer The `id` of the [User](#user) giving the votes.
5051
* @queryParam with_deleted boolean This param has no effect as api calls do not currently receive group permissions. No-example
5152
*/
52-
#[Limit(20, 5), Page, Sort('IdSort')]
53+
#[Limit(BeatmapDiscussionVote::PER_PAGE, 5), Page, Sort('IdSort')]
5354
public function index()
5455
{
5556
$bundle = new BeatmapsetDiscussionVotesBundle(request()->all());

0 commit comments

Comments
 (0)