feat: websockets & realtime updates
This commit is contained in:
parent
2a167ba8ad
commit
0bf67061f8
4 changed files with 41 additions and 46 deletions
|
@ -60,10 +60,8 @@ export const triggerPlayNext = async function (roomId: string): Promise<[FetchEr
|
|||
|
||||
let songs: Song[] = []
|
||||
|
||||
if (json["ended"]) {
|
||||
json["queue"].forEach(async (i: any) => {
|
||||
songs.push(await parseSong(i))
|
||||
})
|
||||
}
|
||||
json["queue"].forEach(async (i: any) => {
|
||||
songs.push(await parseSong(i))
|
||||
})
|
||||
return [null, songs, json["index"]]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue