move get funcs to db

This commit is contained in:
sentriz
2019-07-05 17:10:11 +01:00
parent 1ab24db5d7
commit b6b3043765
13 changed files with 79 additions and 73 deletions

View File

@@ -58,7 +58,7 @@ func (c *Controller) WithValidSubsonicArgs(next http.HandlerFunc) http.HandlerFu
"please provide parameters `t` and `s`, or just `p`")
return
}
user := c.GetUserFromName(username)
user := c.DB.GetUserFromName(username)
if user == nil {
respondError(w, r, 40, "invalid username `%s`", username)
return