@@ -71,10 +71,7 @@ func (c *Controller) ServeCreateOrUpdatePlaylist(r *http.Request) *spec.Response
|
|||||||
user := r.Context().Value(CtxUser).(*db.User)
|
user := r.Context().Value(CtxUser).(*db.User)
|
||||||
params := r.Context().Value(CtxParams).(params.Params)
|
params := r.Context().Value(CtxParams).(params.Params)
|
||||||
|
|
||||||
playlistID, err := params.GetFirstID("id", "playlistId")
|
playlistID, _ := params.GetFirstID("id", "playlistId")
|
||||||
if err != nil {
|
|
||||||
return spec.NewError(10, "please provide an `id` or `playlistId` parameter")
|
|
||||||
}
|
|
||||||
playlistPath := playlistIDDecode(playlistID)
|
playlistPath := playlistIDDecode(playlistID)
|
||||||
|
|
||||||
var playlist playlistp.Playlist
|
var playlist playlistp.Playlist
|
||||||
|
|||||||
Reference in New Issue
Block a user