Add getShares and createShare Subsonic endpoints

This commit is contained in:
Deluan
2023-01-22 14:38:55 -05:00
parent 94cc2b2ac5
commit d0dceae094
21 changed files with 257 additions and 56 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ func (r *shareRepository) NewInstance() interface{} {
}
func (r *shareRepository) Get(id string) (*model.Share, error) {
sel := r.selectShare().Columns("*").Where(Eq{"share.id": id})
sel := r.selectShare().Where(Eq{"share.id": id})
var res model.Share
err := r.queryOne(sel, &res)
return &res, err