feat(db/m7-353): sqlc queries for album cover enrichment
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user