mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Make sure bills API is consistent.
This commit is contained in:
@@ -41,11 +41,16 @@ class UserTransformer extends TransformerAbstract
|
||||
{
|
||||
|
||||
return [
|
||||
'id' => (int)$user->id,
|
||||
'links' => [
|
||||
'id' => (int)$user->id,
|
||||
'updated_at' => $user->updated_at->toAtomString(),
|
||||
'created_at' => $user->created_at->toAtomString(),
|
||||
'email' => $user->email,
|
||||
'blocked' => intval($user->blocked) === 1,
|
||||
'blocked_code' => $user->blocked_code,
|
||||
'links' => [
|
||||
[
|
||||
'rel' => 'self',
|
||||
'uri' => '/user/' . $user->id,
|
||||
'uri' => '/users/' . $user->id,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
Reference in New Issue
Block a user