Fix scrobble error spam in the logs.

Relates to #2831 and #2975
This commit is contained in:
Deluan
2024-04-26 16:59:14 -04:00
parent 18143fa5a1
commit f5df948eb1
4 changed files with 44 additions and 15 deletions
-2
View File
@@ -157,8 +157,6 @@ func (r sqlRepository) toSQL(sq Sqlizer) (string, dbx.Params, error) {
return query, params, nil
}
// Note: Due to a bug in the QueryRow method, this function does not map any embedded structs (ex: annotations)
// In this case, use the queryAll method and get the first item of the returned list
func (r sqlRepository) queryOne(sq Sqlizer, response interface{}) error {
query, args, err := r.toSQL(sq)
if err != nil {