2 Commits

Author SHA1 Message Date
Thomas Viesmose Birch
58f972156e Typescript is hard! 2024-05-04 16:20:19 +02:00
Thomas Viesmose Birch
1f69d0e867 Added OthersPlaylists to the parseMessages 2024-05-04 16:19:16 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ function parseMessage(message) {
case 'GetOtherPlaylists':
return new messageTypes_1.GetOtherPlaylists();
case 'OthersPlaylists':
return new messageTypes_1.OthersPlaylists(data.playlist);
return new messageTypes_1.OthersPlaylists(data.playlists);
case 'ToggleTag':
return new messageTypes_1.ToggleTag(data.song, data.tag);
case 'Shuffle':

View File

@@ -73,7 +73,7 @@ export default function parseMessage(message: string): StuenMessage | null {
case 'GetOtherPlaylists':
return new GetOtherPlaylists();
case 'OthersPlaylists':
return new OthersPlaylists(data.playlist);
return new OthersPlaylists(data.playlists);
case 'ToggleTag':
return new ToggleTag(data.song, data.tag);
case 'Shuffle':