mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 05:51:05 +03:30
fix media
This commit is contained in:
@@ -32,7 +32,6 @@ class ItemResource extends JsonResource
|
||||
'package' => PackageResource::make($this->whenLoaded('package')),
|
||||
'transfers' => TransferResource::collection($this->whenLoaded('transfers')),
|
||||
'files' => MediaResource::collection($this->media),
|
||||
'thumbnail' => $this->getFirstMediaUrl('main_images', 'thumbnail'),
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at
|
||||
];
|
||||
|
||||
@@ -34,7 +34,6 @@ class TestResultResource extends JsonResource
|
||||
'input_values' => $this->when( $this->input_values , $this->input_values ) ,
|
||||
'user' => UserResource::make( $this->whenLoaded( 'user' ) ) ,
|
||||
'files' => MediaResource::collection( $this->media ) ,
|
||||
'thumbnail' => $this->getFirstMediaUrl( 'main_images' , 'thumbnail' ) ,
|
||||
'created_at' => $this->created_at ,
|
||||
'updated_at' => $this->updated_at
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user