move get funcs to db

This commit is contained in:
sentriz
2019-07-06 13:49:30 +01:00
parent 1ab24db5d7
commit b6b3043765
13 changed files with 79 additions and 73 deletions

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ func (c *Controller) GetAlbumList(w http.ResponseWriter, r *http.Request) {
respondError(w, r, 10, "please provide a `type` parameter")
return
}
q := c.DB
q := c.DB.DB
switch listType {
case "alphabeticalByArtist":
q = q.Joins(`