update update playlist mutation

This commit is contained in:
Violet Caulfield
2025-02-10 17:35:01 -06:00
parent 3282e8039b
commit 3d361750b3
2 changed files with 14 additions and 8 deletions
+3 -2
View File
@@ -59,14 +59,15 @@ export async function createPlaylist(name: string) {
* @param playlistId The Jellyfin ID of the playlist to update
* @returns
*/
export async function updatePlaylist(playlistId: string, name: string) {
export async function updatePlaylist(playlistId: string, name: string, trackIds: string[]) {
console.debug("Updating playlist");
return getPlaylistsApi(Client.api!)
.updatePlaylist({
playlistId,
updatePlaylistDto: {
Name: name
Name: name,
Ids: trackIds
}
});
}