Skip to content

Commit

Permalink
Update RestDefinitions.php with location
Browse files Browse the repository at this point in the history
Added Location to RestDefinitions
  • Loading branch information
Artillio authored Mar 13, 2024
1 parent 6a07907 commit 5666c4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers/RestDefinitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static function getCalendarEntry(CalendarEntry $entry)
'participant_info' => $entry->participant_info,
'closed' => (int)$entry->closed,
'max_participants' => (int)$entry->max_participants,
'location' => $entry->location,
'content' => ContentDefinitions::getContent($entry->content),
'participants' => static::getParticipantUsers($entry->getParticipantEntries()->with('user')->all())
];
Expand All @@ -60,4 +61,4 @@ private static function getParticipantUsers($participants)

return $result;
}
}
}

0 comments on commit 5666c4d

Please sign in to comment.