mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
API optimization
This commit is contained in:
parent
109c97dc55
commit
e7c8ca50db
@ -6,6 +6,8 @@ class InvitationTransformer extends EntityTransformer
|
||||
{
|
||||
public function transform(Invitation $invitation)
|
||||
{
|
||||
$invitation->setRelation('account', $this->account);
|
||||
|
||||
return [
|
||||
'id' => (int) $invitation->public_id,
|
||||
'key' => $invitation->getName(),
|
||||
|
Loading…
Reference in New Issue
Block a user