mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Use components transformer in API method
This commit is contained in:
parent
5d18937e94
commit
2ce48fbc7e
|
@ -158,6 +158,6 @@ class ComponentsController extends Controller
|
|||
$limit = $request->input('limit', 50);
|
||||
$total = $assets->count();
|
||||
$assets = $assets->skip($offset)->take($limit)->get();
|
||||
return (new ComponentsAssetsTransformer)->transformAssets($assets, $total);
|
||||
return (new ComponentsTransformer)->transformCheckedoutComponents($assets, $total);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue