Skip to content

Commit

Permalink
fix: stats may return null value
Browse files Browse the repository at this point in the history
chore: updates
  • Loading branch information
mauricerenck committed Aug 21, 2024
1 parent 10ecd33 commit ad85cc3
Show file tree
Hide file tree
Showing 7 changed files with 377 additions and 2,257 deletions.
4 changes: 2 additions & 2 deletions app/PodcasterStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function trackEpisode($feed, $episode, $userAgent): void
return;
}

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

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

Expand Down
Loading

0 comments on commit ad85cc3

Please sign in to comment.