mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2025-01-29 17:48:29 +00:00
fix get_my_favorite_tracks when user has no favorite tracks
This commit is contained in:
parent
07d94e1d0a
commit
f6b5971edb
|
@ -459,6 +459,7 @@ class GW{
|
|||
const limit = options.limit || 25
|
||||
const ids_raw = await this.get_user_favorite_ids(null, {limit})
|
||||
const ids = ids_raw.data.map(x => x.SNG_ID)
|
||||
if (!ids.length) return []
|
||||
let data = await this.get_tracks(ids)
|
||||
let result = []
|
||||
data.forEach((track, i) => {
|
||||
|
|
Loading…
Reference in a new issue