mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
return items
This commit is contained in:
parent
bca40318bd
commit
f70c9ff53e
@ -28,6 +28,7 @@ export default {
|
|||||||
|
|
||||||
release.listLength = totalTracks
|
release.listLength = totalTracks
|
||||||
release.items = tracks
|
release.items = tracks
|
||||||
|
release.list = tracks
|
||||||
|
|
||||||
return release
|
return release
|
||||||
},
|
},
|
||||||
|
@ -28,8 +28,8 @@ export default {
|
|||||||
|
|
||||||
if (req.query.resolveItemsData === "true") {
|
if (req.query.resolveItemsData === "true") {
|
||||||
releases = await Promise.all(
|
releases = await Promise.all(
|
||||||
playlists.map(async playlist => {
|
playlists.map(async (playlist) => {
|
||||||
playlist.list = await Track.find({
|
playlist.items = await Track.find({
|
||||||
_id: [...playlist.list],
|
_id: [...playlist.list],
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -42,5 +42,5 @@ export default {
|
|||||||
total_length: await MusicRelease.countDocuments(searchQuery),
|
total_length: await MusicRelease.countDocuments(searchQuery),
|
||||||
items: releases,
|
items: releases,
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user