Use components transformer in API method

This commit is contained in:
snipe 2017-10-07 06:56:39 -07:00
parent 5d18937e94
commit 2ce48fbc7e

View file

@ -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);
}
}