mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-02-16 18:14:23 +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() {
|
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 = [];
|
$playlists = [];
|
||||||
foreach ($query as $playlist) {
|
foreach ($query as $playlist) {
|
||||||
$playlists[] = [
|
$playlists[] = [
|
||||||
|
|
Loading…
Reference in a new issue