mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 15:23:36 +00:00
Allow toggling a playlist public from the Playlist list view. Closes #344
This commit is contained in:
1 parent
5e2d463129
commit
b4e06c416d
2 files changed
+37
-5
No files matched your search
@@ -87,9 +87,13 @@ func (r *playlistRepository) Put(p *model.Playlist) error {
|
||||
return err
|
||||
}
|
||||
p.ID = id
|
||||
err = r.updateTracks(id, tracks)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
// Only update tracks if they are specified
|
||||
if tracks != nil {
|
||||
err = r.updateTracks(id, tracks)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return r.loadTracks(p)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user