mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Fixes #3802 - make id an (int) in API repsonse
This commit is contained in:
parent
d5cadeab1a
commit
63bc2ec09f
|
@ -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,
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue