Merge branch 'develop'

This commit is contained in:
snipe 2017-11-14 01:32:43 -08:00
commit f7c6697a69

View file

@ -56,11 +56,9 @@ class AssetMaintenancesController extends Controller
break;
}
$total = $maintenances->count();
$maintenances = $maintenances->skip($offset)->take($limit)->get();
return (new AssetMaintenancesTransformer())->transformAssetMaintenances($maintenances, $maintenances->count());
return (new AssetMaintenancesTransformer())->transformAssetMaintenances($maintenances, $total);
}