Fixed #4817 - [BREAKING API CHANGE] - changed user API response from firstname, lastname to first_name, last_name

This commit is contained in:
snipe 2018-01-17 13:25:11 -08:00
parent d920d91786
commit 8995d689b8

View file

@ -25,8 +25,8 @@ class UsersTransformer
'id' => (int) $user->id,
'avatar' => e($user->present()->gravatar),
'name' => e($user->first_name).' '.($user->last_name),
'firstname' => e($user->first_name),
'lastname' => e($user->last_name),
'first_name' => e($user->first_name),
'last_name' => e($user->last_name),
'username' => e($user->username),
'employee_num' => e($user->employee_num),
'manager' => ($user->manager) ? [