Skip to content

Commit

Permalink
fix: added filtering condition to video page
Browse files Browse the repository at this point in the history
show only Summits with AvailableOnApi on true
  • Loading branch information
smarcet committed Dec 5, 2023
1 parent 4df8b17 commit a1bf02d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion summit-video-app/code/SummitVideoAppBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ public function getSpeakers($params = [])
public function getSummits($params = [])
{
$summits = Summit::get()
->filter('SummitBeginDate:LessThan', SS_DateTime::now()->Rfc2822())
->filter(
[
'SummitBeginDate:LessThan' => SS_DateTime::now()->Rfc2822(),
'AvailableOnApi' => true
])
->sort('SummitBeginDate DESC');

$response = [
Expand Down

0 comments on commit a1bf02d

Please sign in to comment.