fix: add `public` attribute to playlists. Even though it is optional,
DSub requires it
This commit is contained in:
parent
b49b9e3ca0
commit
d7b5e6a36c
|
@ -102,7 +102,11 @@ func (p *playlists) Update(ctx context.Context, playlistId string, name *string,
|
|||
}
|
||||
|
||||
func (p *playlists) GetAll(ctx context.Context) (model.Playlists, error) {
|
||||
return p.ds.Playlist(ctx).GetAll(model.QueryOptions{})
|
||||
all, err := p.ds.Playlist(ctx).GetAll(model.QueryOptions{})
|
||||
for i := range all {
|
||||
all[i].Public = true
|
||||
}
|
||||
return all, err
|
||||
}
|
||||
|
||||
type PlaylistInfo struct {
|
||||
|
|
Loading…
Reference in New Issue