mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
Fix scoped queries
This commit is contained in:
parent
9f1f78339f
commit
d2390868dd
3 changed files with 3 additions and 3 deletions
|
@ -122,7 +122,7 @@ class Album extends Model implements Searchable, Commentable, Favouritable
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return !$query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $table = 'albums';
|
protected $table = 'albums';
|
||||||
|
|
|
@ -138,7 +138,7 @@ class Playlist extends Model implements Searchable, Commentable, Favouritable
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return !$query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function mapPublicPlaylistShow(Playlist $playlist)
|
public static function mapPublicPlaylistShow(Playlist $playlist)
|
||||||
|
|
|
@ -133,7 +133,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return !$query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue