feat(db/m7-353): sqlc queries for album cover enrichment

This commit is contained in:
2026-05-04 14:30:55 -04:00
parent 458a183099
commit 15170ed7c6
7 changed files with 300 additions and 25 deletions
+5 -1
View File
@@ -201,7 +201,11 @@ type ListPlaylistsByUserAndKindRow struct {
UpdatedAt pgtype.Timestamptz
}
// Powers GET /api/me/playlists?kind=. Sorted by updated_at DESC.
// Used in integration tests; production filter applied in Go
// (api.handleListPlaylists fetches via Service.List and filters by Kind in
// memory so it can also surface other users' public playlists alongside
// the caller's own kind-filtered ones).
// Sorted by updated_at DESC.
func (q *Queries) ListPlaylistsByUserAndKind(ctx context.Context, arg ListPlaylistsByUserAndKindParams) ([]ListPlaylistsByUserAndKindRow, error) {
rows, err := q.db.Query(ctx, listPlaylistsByUserAndKind, arg.UserID, arg.Column2)
if err != nil {