Make category counters ints

This commit is contained in:
snipe 2018-05-18 15:48:48 -07:00
parent f84ab2beda
commit d89ef43834

View file

@ -30,11 +30,11 @@ class CategoriesTransformer
'eula' => ($category->getEula()) ? true : false, 'eula' => ($category->getEula()) ? true : false,
'checkin_email' => ($category->checkin_email =='1') ? true : false, 'checkin_email' => ($category->checkin_email =='1') ? true : false,
'require_acceptance' => ($category->require_acceptance =='1') ? true : false, 'require_acceptance' => ($category->require_acceptance =='1') ? true : false,
'assets_count' => $category->assets_count, 'assets_count' => (int) $category->assets_count,
'accessories_count' => $category->accessories_count, 'accessories_count' => (int) $category->accessories_count,
'consumables_count' => $category->consumables_count, 'consumables_count' => (int) $category->consumables_count,
'components_count' => $category->components_count, 'components_count' => (int) $category->components_count,
'licenses_count' => $category->licenses_count, 'licenses_count' => (int) $category->licenses_count,
'created_at' => Helper::getFormattedDateObject($category->created_at, 'datetime'), 'created_at' => Helper::getFormattedDateObject($category->created_at, 'datetime'),
'updated_at' => Helper::getFormattedDateObject($category->updated_at, 'datetime'), 'updated_at' => Helper::getFormattedDateObject($category->updated_at, 'datetime'),
]; ];