fix(Track): fix toJSON causing errors
This commit is contained in:
parent
c681d0b151
commit
ad9212c0e9
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class Track {
|
|||
duration: this.duration,
|
||||
durationMS: this.durationMS,
|
||||
views: this.views,
|
||||
requestedBy: this.requestedBy.id,
|
||||
requestedBy: this.requestedBy?.id,
|
||||
playlist: hidePlaylist ? null : this.playlist?.toJSON() ?? null
|
||||
} as TrackJSON;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue