Skip to content

Commit

Permalink
Get only specific columns to improve speed
Browse files Browse the repository at this point in the history
  • Loading branch information
afonic committed Jan 21, 2024
1 parent 37e8b27 commit c3a32a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/Reservation.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public function getPropertyAttributeLabel()

public function getEntryAttribute()
{
return Entry::find($this->item_id) ? Entry::find($this->item_id)->toAugmentedArray() : $this->emptyEntry();
$entry = Entry::find($this->item_id);
return $entry ? $entry->toAugmentedArray(['title', 'permalink', 'api_url']) : $this->emptyEntry();
}

public function options()
Expand Down

0 comments on commit c3a32a0

Please sign in to comment.