fix: add `public` attribute to playlists. Even though it is optional,

DSub requires it
This commit is contained in:
Deluan 2020-02-23 00:10:05 -05:00
parent b49b9e3ca0
commit d7b5e6a36c
1 changed files with 5 additions and 1 deletions

View File

@ -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 {