Skip to content

Commit

Permalink
#2662 Fixed Zolramus and removed pagination from the dungeon list API…
Browse files Browse the repository at this point in the history
… endpoint
  • Loading branch information
Wotuu committed Jan 27, 2025
1 parent 881518d commit b2da69b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class APIDungeonController extends Controller
public function get(Request $request): DungeonEnvelopeResource
{
return new DungeonEnvelopeResource(
Dungeon::active()->paginate(50)
Dungeon::active()->get()
);
}
/**
Expand Down
2 changes: 0 additions & 2 deletions app/Http/Resources/Dungeon/DungeonEnvelopeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
/**
* @OA\Schema(schema="DungeonEnvelope")
* @OA\Property(type="array",property="data",@OA\Items(ref="#/components/schemas/Dungeon"))
* @OA\Property(ref="#/components/schemas/PaginationLinks",property="links")
* @OA\Property(ref="#/components/schemas/PaginationMeta",property="meta")
*
* @author Wouter
*
Expand Down
18 changes: 9 additions & 9 deletions database/seeders/dungeondata/dungeons.json
Original file line number Diff line number Diff line change
Expand Up @@ -3694,10 +3694,10 @@
"max_enemy_size": null,
"enemy_engagement_max_range": null,
"enemy_engagement_max_range_patrols": null,
"ingame_min_x": 3336.3,
"ingame_min_y": -3080,
"ingame_max_x": 3400,
"ingame_max_y": -3309,
"ingame_min_x": 3286.3,
"ingame_min_y": -3100,
"ingame_max_x": 3450,
"ingame_max_y": -3329,
"percentage_display_zoom": 1,
"zoom_max": null,
"active": 1,
Expand Down Expand Up @@ -3731,10 +3731,10 @@
"max_enemy_size": null,
"enemy_engagement_max_range": null,
"enemy_engagement_max_range_patrols": null,
"ingame_min_x": 3336.3,
"ingame_min_y": -3080,
"ingame_max_x": 3400,
"ingame_max_y": -3309,
"ingame_min_x": 3286.3,
"ingame_min_y": -3100,
"ingame_max_x": 3450,
"ingame_max_y": -3329,
"percentage_display_zoom": 1,
"zoom_max": null,
"active": 1,
Expand Down Expand Up @@ -15625,4 +15625,4 @@
}
]
}
]
]

0 comments on commit b2da69b

Please sign in to comment.