mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #569 from turbo124/master
Working on API Transformers
This commit is contained in:
commit
98ee6594ac
@ -11,7 +11,7 @@ class AccountTransformer extends EntityTransformer
|
|||||||
{
|
{
|
||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
'users',
|
'users',
|
||||||
'clients',
|
// 'clients',
|
||||||
'invoices',
|
'invoices',
|
||||||
'contacts',
|
'contacts',
|
||||||
'products',
|
'products',
|
||||||
|
@ -13,7 +13,6 @@ class ContactTransformer extends EntityTransformer
|
|||||||
'first_name' => $contact->first_name,
|
'first_name' => $contact->first_name,
|
||||||
'last_name' => $contact->last_name,
|
'last_name' => $contact->last_name,
|
||||||
'email' => $contact->email,
|
'email' => $contact->email,
|
||||||
'user_id' => (int) $contact->user_id,
|
|
||||||
'updated_at' => $contact->updated_at,
|
'updated_at' => $contact->updated_at,
|
||||||
'deleted_at' => $contact->deleted_at,
|
'deleted_at' => $contact->deleted_at,
|
||||||
'is_primary' => (bool) $contact->is_primary,
|
'is_primary' => (bool) $contact->is_primary,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user