From 2ce48fbc7ed858d6ea831ff87f2906cb27dd7c13 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 7 Oct 2017 06:56:39 -0700 Subject: [PATCH] Use components transformer in API method --- app/Http/Controllers/Api/ComponentsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ComponentsController.php b/app/Http/Controllers/Api/ComponentsController.php index 1ffb3d4e0e..48e4d05ca3 100644 --- a/app/Http/Controllers/Api/ComponentsController.php +++ b/app/Http/Controllers/Api/ComponentsController.php @@ -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); } }