Skip to content

Commit a1bf02d

Browse files
committed
fix: added filtering condition to video page
show only Summits with AvailableOnApi on true
1 parent 4df8b17 commit a1bf02d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

summit-video-app/code/SummitVideoAppBackend.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,11 @@ public function getSpeakers($params = [])
288288
public function getSummits($params = [])
289289
{
290290
$summits = Summit::get()
291-
->filter('SummitBeginDate:LessThan', SS_DateTime::now()->Rfc2822())
291+
->filter(
292+
[
293+
'SummitBeginDate:LessThan' => SS_DateTime::now()->Rfc2822(),
294+
'AvailableOnApi' => true
295+
])
292296
->sort('SummitBeginDate DESC');
293297

294298
$response = [

0 commit comments

Comments
 (0)