From d7b5e6a36c0761a0828d8ed2297cbf0a4e4de665 Mon Sep 17 00:00:00 2001 From: Deluan <deluan@deluan.com> Date: Sun, 23 Feb 2020 00:10:05 -0500 Subject: [PATCH] fix: add `public` attribute to playlists. Even though it is optional, DSub requires it --- engine/playlists.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/playlists.go b/engine/playlists.go index 7dd1c6306..97828d22c 100644 --- a/engine/playlists.go +++ b/engine/playlists.go @@ -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 {