mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-27 05:59:36 -05:00
update update playlist mutation
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user