Skip to content

Commit

Permalink
feat: add user_id to character sheet return
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypta-Eve authored and warlof committed Feb 9, 2021
1 parent 4d8d91e commit 0232ef2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Resources/CharacterSheetResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
* @OA\Property(property="skillpoints", type="object",
* @OA\Property(property="total_sp", type="number", description="The total skill points owned by the character"),
* @OA\Property(property="unallocated_sp", type="number", description="The total skill points not allocated for this character")
* )
* ),
* @OA\Property(property="user_id", type="integer", description="Seat user identifier")
* )
*/
class CharacterSheetResource extends Resource
Expand Down Expand Up @@ -81,6 +82,7 @@ public function toArray($request)
'total_sp' => $this->skillpoints->total_sp,
'unallocated_sp' => $this->skillpoints->unallocated_sp,
],
'user_id' => $this->user->id,
];

$definition = parent::toArray($request);
Expand Down

0 comments on commit 0232ef2

Please sign in to comment.