mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-10 03:17:27 +02:00
Fix adding songs to plain playlists
This commit is contained in:
parent
bbd3882a75
commit
fa5dc5af10
1 changed files with 6 additions and 3 deletions
|
|
@ -38,15 +38,18 @@ func NewPlaylistRepository(ctx context.Context, o orm.QueryExecutor) model.Playl
|
|||
return r
|
||||
}
|
||||
|
||||
func playlistFilter(field string, value interface{}) Sqlizer {
|
||||
func playlistFilter(_ string, value interface{}) Sqlizer {
|
||||
return Or{
|
||||
substringFilter("playlist.name", value),
|
||||
substringFilter("playlist.comment", value),
|
||||
}
|
||||
}
|
||||
|
||||
func smartPlaylistFilter(field string, value interface{}) Sqlizer {
|
||||
return Eq{"rules": ""}
|
||||
func smartPlaylistFilter(string, interface{}) Sqlizer {
|
||||
return Or{
|
||||
Eq{"rules": ""},
|
||||
Eq{"rules": nil},
|
||||
}
|
||||
}
|
||||
|
||||
func (r *playlistRepository) userFilter() Sqlizer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue