fix(server/api/test): retype callRadio user param to dbq.User for withUser helper

This commit is contained in:
2026-05-08 11:05:25 -04:00
parent 909b36d5ad
commit 923b8286ee
+2 -1
View File
@@ -7,10 +7,11 @@ import (
"net/http/httptest"
"testing"
"git.fabledsword.com/bvandeusen/minstrel/internal/db/dbq"
"git.fabledsword.com/bvandeusen/minstrel/internal/recommendation"
)
func callRadio(h *handlers, user interface{}, query string) *httptest.ResponseRecorder {
func callRadio(h *handlers, user dbq.User, query string) *httptest.ResponseRecorder {
req := httptest.NewRequest(http.MethodGet, "/api/radio?"+query, nil)
req = withUser(req, user)
w := httptest.NewRecorder()