summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhorus2020-03-24 01:29:49 +0100
committerhorus2020-03-24 01:29:49 +0100
commitb937441c92d749b2c6e6d82835a241a36de5bf1b (patch)
tree368dc97e3d2167ddfc5aec8636de4ffe1ec19d16 /app
parentbe74d82014af406a7e7df836f13c44cf03e2d125 (diff)
downloadsenpai-b937441c92d749b2c6e6d82835a241a36de5bf1b.tar.gz
Now it fixes the stupid misstake.
Diffstat (limited to 'app')
-rw-r--r--app/Libraries/Background.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Libraries/Background.php b/app/Libraries/Background.php
index ed7e9a4..7f5f709 100644
--- a/app/Libraries/Background.php
+++ b/app/Libraries/Background.php
@@ -29,7 +29,7 @@ class Background {
return;
}
- $airing = Airing::where('mal_id', $stats->mal_id)->get()->first();
+ $airing = Airing::where('mal_id', $stats->mal_id)->get()->last();
if ( is_null($airing) ) {
$airing = new Airing();
}