From d2390868dd68d8c37665cc7b9202c7ca229eb0fc Mon Sep 17 00:00:00 2001 From: Adam Lavin Date: Tue, 28 Nov 2017 16:44:28 +0000 Subject: [PATCH] Fix scoped queries --- app/Models/Album.php | 2 +- app/Models/Playlist.php | 2 +- app/Models/User.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Album.php b/app/Models/Album.php index ba9241be..b77ed7b9 100644 --- a/app/Models/Album.php +++ b/app/Models/Album.php @@ -122,7 +122,7 @@ class Album extends Model implements Searchable, Commentable, Favouritable ]); } - return !$query; + return $query; } protected $table = 'albums'; diff --git a/app/Models/Playlist.php b/app/Models/Playlist.php index 0d9fed45..cd1986fe 100644 --- a/app/Models/Playlist.php +++ b/app/Models/Playlist.php @@ -138,7 +138,7 @@ class Playlist extends Model implements Searchable, Commentable, Favouritable ]); } - return !$query; + return $query; } public static function mapPublicPlaylistShow(Playlist $playlist) diff --git a/app/Models/User.php b/app/Models/User.php index 25d90d06..2f7f93bb 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -133,7 +133,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon ]); } - return !$query; + return $query; } /**