summaryrefslogtreecommitdiff
path: root/app/Libraries/Background.php
diff options
context:
space:
mode:
authorhorus2022-11-17 19:57:52 +0100
committerhorus2022-11-17 19:57:52 +0100
commitf4d0db3c67127919f431459aa1e430cab4e6d380 (patch)
tree8d3cb288ccac34e108350543352fafc953d7ebe4 /app/Libraries/Background.php
parentf2e76ff110f531703f2c4f400e1fa285ee05ad94 (diff)
downloadsenpai-f4d0db3c67127919f431459aa1e430cab4e6d380.tar.gz
Change scheduler from closures to artisan commands
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() {