API optimization
This commit is contained in:
parent
109c97dc55
commit
e7c8ca50db
1 changed files with 3 additions and 1 deletions
|
|
@ -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(),
|
||||
|
|
@ -15,4 +17,4 @@ class InvitationTransformer extends EntityTransformer
|
|||
'viewed_date' => $invitation->sent_date,
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue