mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
transformation of IDs to PUBLIC_IDs
This commit is contained in:
parent
f2fdb7f51c
commit
43b6e749c3
@ -68,7 +68,7 @@ class ClientTransformer extends EntityTransformer
|
||||
'name' => $client->name,
|
||||
'balance' => (float) $client->balance,
|
||||
'paid_to_date' => (float) $client->paid_to_date,
|
||||
'user_id' => (int) $client->user->public_id,
|
||||
'user_id' => (int) $client->user->public_id+1,
|
||||
'account_key' => $this->account->account_key,
|
||||
'updated_at' => $client->updated_at,
|
||||
'deleted_at' => $client->deleted_at,
|
||||
|
@ -20,7 +20,7 @@ class ContactTransformer extends EntityTransformer
|
||||
'phone' => $contact->phone,
|
||||
'last_login' => $contact->last_login,
|
||||
'account_key' => $this->account->account_key,
|
||||
'client_id' => $contact->client_id
|
||||
'client_id' => $contact->client->public_id
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user