refactor(server/api): migrate me/* + events preludes (A2 5/N)

This commit is contained in:
2026-05-08 08:44:50 -04:00
parent 79c3ec3659
commit 9dd5da514c
5 changed files with 5 additions and 15 deletions
+1 -3
View File
@@ -7,7 +7,6 @@ import (
"github.com/jackc/pgx/v5"
"git.fabledsword.com/bvandeusen/minstrel/internal/apierror"
"git.fabledsword.com/bvandeusen/minstrel/internal/auth"
"git.fabledsword.com/bvandeusen/minstrel/internal/db/dbq"
)
@@ -24,9 +23,8 @@ type systemPlaylistsStatusResp struct {
// Returns the caller's system_playlist_runs row, or zero-values when no row
// exists yet (i.e. the user has never had a build attempted).
func (h *handlers) handleGetSystemPlaylistsStatus(w http.ResponseWriter, r *http.Request) {
caller, ok := auth.UserFromContext(r.Context())
caller, ok := requireUser(w, r)
if !ok {
writeErr(w, apierror.Unauthorized("unauthenticated", "no session"))
return
}