Skip to content
Snippets Groups Projects
Commit 6f05ce5f authored by Christian Pointner's avatar Christian Pointner
Browse files

added some TODOs

parent 47885a55
Branches
Tags
No related merge requests found
......@@ -34,6 +34,8 @@ func (api *API) ListGroups() http.Handler {
if err != nil {
sendWebResponse(w, http.StatusInternalServerError, ErrorResponse{err.Error()})
}
// TODO: add all groups that are not present in the store but are accessable to the user
// accroding to the auth info we got.
sendWebResponse(w, http.StatusOK, GroupsListing{groups})
})
}
......
......@@ -44,7 +44,7 @@ func sendStoreError(w http.ResponseWriter, err error) {
case store.ErrNotFound:
code = http.StatusNotFound
case store.ErrFileInUse:
code = http.StatusLocked
code = http.StatusConflict
}
sendWebResponse(w, code, ErrorResponse{err.Error()})
}
......
......@@ -87,6 +87,7 @@ func (st *Store) CreatePlaylist(group string, playlist Playlist) (*Playlist, err
playlist.ID = 0
playlist.GroupName = group
err := st.db.Create(&playlist).Error
// TODO: the returned playlist object will not contain properly initialized File Objects
return &playlist, err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment