change attribute name to object in api response #261

This commit is contained in:
Leo Germani 2019-09-27 17:28:32 -03:00
parent 341cb5fcbc
commit 7468573486
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class REST_Logs_Controller extends REST_Controller {
}
if ($related_entity instanceof Entities\Entity ) {
$item_array[ strtolower($related_entity->get_repository()->get_name()) ] = $related_entity->_toArray();
$item_array[ 'object' ] = $related_entity->_toArray();
}
}