mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 13:07:59 +01:00
added more db optimizations
This commit is contained in:
parent
21be35a4a9
commit
e06e7da234
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@
|
|||
}
|
||||
|
||||
public function getOwned() {
|
||||
$query = Playlist::summary()->with('pins')->where('user_id', \Auth::user()->id)->orderBy('title', 'asc')->get();
|
||||
$query = Playlist::summary()->with('pins', 'tracks', 'tracks.cover')->where('user_id', \Auth::user()->id)->orderBy('title', 'asc')->get();
|
||||
$playlists = [];
|
||||
foreach ($query as $playlist) {
|
||||
$playlists[] = [
|
||||
|
|
Loading…
Reference in a new issue