Fixes #3802 - make id an (int) in API repsonse

This commit is contained in:
snipe 2017-08-22 14:53:48 -07:00
parent d5cadeab1a
commit 63bc2ec09f
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ class CategoriesTransformer
if ($category) {
$array = [
'id' => e($category->id),
'id' => (int) $category->id,
'name' => e($category->name),
'type' => e($category->category_type),
'use_default_eula' => ($category->use_default_eula =='1') ? true : false,

View file

@ -23,7 +23,7 @@ class CompaniesTransformer
if ($company) {
$array = [
'id' => e($company->id),
'id' => (int) $company->id,
'name' => e($company->name),
"created_at" => Helper::getFormattedDateObject($company->created_at, 'datetime'),
"updated_at" => Helper::getFormattedDateObject($company->updated_at, 'datetime'),