summaryrefslogtreecommitdiff
path: root/app/Libraries/Background.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Libraries/Background.php')
-rw-r--r--app/Libraries/Background.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Libraries/Background.php b/app/Libraries/Background.php
index 3f8ea5c..8cd8f07 100644
--- a/app/Libraries/Background.php
+++ b/app/Libraries/Background.php
@@ -166,8 +166,8 @@ class Background {
}
if ( 3 < $failure ) {
- echo "Got " . $failure . " failures and " . $counter . " entries. Returning...\n";
- return;
+ echo "Got " . $failure . " failures and " . $counter . " entries. Last entry was: " . $entry->mal_id . " Returning...\n";
+ return false;
}
$animeDetail = AnimeDetails::where('mal_id', $entry->mal_id);
@@ -204,6 +204,8 @@ class Background {
if ( 0 < $counter ) {
echo "Got stats for " . $counter . " anime.\n";
}
+
+ return true;
}
public function checkIfIsAiring() {