Skip to content

Commit

Permalink
fix play queue query
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Sep 21, 2022
1 parent f41dd08 commit bfb91c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/ctrlsubsonic/handlers_common.go
Expand Up @@ -171,7 +171,7 @@ func (c *Controller) ServeSavePlayQueue(r *http.Request) *spec.Response {
}
user := r.Context().Value(CtxUser).(*db.User)
var queue db.PlayQueue
c.DB.Where("user_id=?, user.ID").First(&queue)
c.DB.Where("user_id=?", user.ID).First(&queue)
queue.UserID = user.ID
queue.Current = params.GetOrID("current", specid.ID{}).Value
queue.Position = params.GetOrInt("position", 0)
Expand Down

0 comments on commit bfb91c9

Please sign in to comment.