Skip to content

Commit

Permalink
use the const
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko committed Sep 18, 2024
1 parent 6d42a44 commit b5d7347
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/BeatmapDiscussionPostsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/BeatmapDiscussionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
3 changes: 2 additions & 1 deletion app/Http/Controllers/BeatmapsetDiscussionVotesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit b5d7347

Please sign in to comment.