Skip to content

Commit ad85cc3

Browse files
committed
fix: stats may return null value
chore: updates
1 parent 10ecd33 commit ad85cc3

File tree

7 files changed

+377
-2257
lines changed

7 files changed

+377
-2257
lines changed

app/PodcasterStats.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function trackEpisode($feed, $episode, $userAgent): void
2121
return;
2222
}
2323

24-
if (option('mauricerenck.podcaster.statsInternal') === true) {
24+
if (option('mauricerenck.podcaster.statsInternal', false) === true) {
2525
$trackingDate = time();
2626
$this->upsertEpisode($feed, $episode, $trackingDate);
2727
$this->upsertUserAgents($feed, $userAgentData, $trackingDate);
@@ -37,7 +37,7 @@ public function trackFeed($feed): void
3737
return;
3838
}
3939

40-
if (option('mauricerenck.podcaster.statsInternal') === true) {
40+
if (option('mauricerenck.podcaster.statsInternal', false) === true) {
4141
$this->upsertFeed($feed);
4242
}
4343

0 commit comments

Comments
 (0)