Skip to content

Commit

Permalink
Merge pull request #33 from Ihor-Proskurnia/User_roles
Browse files Browse the repository at this point in the history
INZ add id recorda
  • Loading branch information
Ihor-Proskurnia authored Jan 15, 2023
2 parents 2e2c867 + 1e10d7e commit 56eb034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Domains/Record/RecordCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function showByUser(int $user_id, IRecordListRequest $request): LengthAwa
->where('records.user_id', '=', $user_id)
->join('orders', 'records.order_id', '=', 'orders.id')
->select([
'records.id',
'orders.date',
'orders.user_id as trainer_id',
'orders.from_time',
Expand Down
1 change: 1 addition & 0 deletions app/Http/Resources/Order/RecordsCollectionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function toArray($request)
return $this->collection->map(function ($item, $key) {
/** @var IRecord $item */
return [
'id' => $item->getId(),
'name' => $item->getName(),
'description' => $item->getDescription(),
'date' => $item->getDate(),
Expand Down

0 comments on commit 56eb034

Please sign in to comment.