-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include beatmap owners in additional Beatmap API responses #11824
Include beatmap owners in additional Beatmap API responses #11824
Conversation
@@ -23,7 +23,7 @@ | |||
*/ | |||
class BeatmapsController extends Controller | |||
{ | |||
const DEFAULT_API_INCLUDES = ['beatmapset.ratings', 'failtimes', 'max_combo']; | |||
const DEFAULT_API_INCLUDES = ['beatmapset.ratings', 'failtimes', 'max_combo', 'owners']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can use docs update...? 🤔
@@ -216,6 +216,7 @@ public function index() | |||
::whereIn('beatmap_id', $ids) | |||
->whereHas('beatmapset') | |||
->with([ | |||
'beatmapOwners', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also needs .user
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, while at it
Field | Type | Description | ||
-------- | ------- | ------------ | ||
id | integer | [User](#user) id of the Beatmap owner | ||
username | string | Username of the Beatmap owner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it's useful to mention about deleted user here
dc90e1b
to
f7bb58b
Compare
Before I forget about it again
closes #11788