From fc42a930e29b2906e9ed06289e5a0a3670f69da1 Mon Sep 17 00:00:00 2001 From: luke-1993 Date: Sun, 24 Dec 2023 12:30:37 +0000 Subject: [PATCH] fix error now we are synced with upstream --- server/nativeapi/song.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/nativeapi/song.go b/server/nativeapi/song.go index 2e5ccff39..3f2871f6d 100644 --- a/server/nativeapi/song.go +++ b/server/nativeapi/song.go @@ -7,9 +7,9 @@ import ( "net/http" "strings" + "github.com/go-chi/chi/v5" "github.com/navidrome/navidrome/log" "github.com/navidrome/navidrome/model" - "github.com/navidrome/navidrome/utils" ) type BeetsItem struct { @@ -100,7 +100,7 @@ type BeetsItem struct { func deleteSong(ds model.DataStore) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { // todo: tests, use proper url parsing lib - id := utils.ParamString(r, ":id") + id := chi.URLParam(r, "id") ctx := r.Context() ids := strings.Split(id, ",") for _, id := range ids {