Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ad Aures
Castopod
Commits
b3caac45
Commit
b3caac45
authored
Sep 22, 2021
by
Yassine Doghri
Browse files
fix(map): update episode markers query to discard unpublished episodes
parent
797e5327
Pipeline
#1063
passed with stages
in 10 minutes and 32 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
app/Controllers/MapMarkerController.php
View file @
b3caac45
...
...
@@ -10,7 +10,6 @@ declare(strict_types=1);
namespace
App\Controllers
;
use
App\Entities\Page
;
use
App\Models\EpisodeModel
;
use
CodeIgniter\HTTP\ResponseInterface
;
...
...
@@ -34,7 +33,9 @@ class MapMarkerController extends BaseController
{
$cacheName
=
'episodes_markers'
;
if
(
!
(
$found
=
cache
(
$cacheName
)))
{
$episodes
=
(
new
EpisodeModel
())
->
where
(
'location_geo is not'
,
null
)
$episodes
=
(
new
EpisodeModel
())
->
where
(
'`published_at` <= NOW()'
,
null
,
false
)
->
where
(
'location_geo is not'
,
null
)
->
findAll
();
$found
=
[];
foreach
(
$episodes
as
$episode
)
{
...
...
Yassine Doghri
@yassine
mentioned in commit
3c5d3f65
·
Sep 22, 2021
mentioned in commit
3c5d3f65
mentioned in commit 3c5d3f65bf86f4f82834112222116361e4e4a62d
Toggle commit list
Yassine Doghri
@yassine
mentioned in commit
d807ab97
·
Jan 23, 2022
mentioned in commit
d807ab97
mentioned in commit d807ab9732d8e4ad1eae956f0b728f8a5c0f868d
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment