fix: use correct API query parameters (vertical_slugs, vertical_slug)
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s

This commit is contained in:
fullsizemalt 2025-12-29 22:36:02 -08:00
parent 1d9e56a2da
commit fb34db3ea3

View file

@ -18,7 +18,7 @@ export function generateStaticParams() {
async function getRecentShows(verticalSlug: string) {
try {
const res = await fetch(`${getApiUrl()}/shows?vertical=${verticalSlug}&limit=8&status=past`, {
const res = await fetch(`${getApiUrl()}/shows?vertical_slugs=${verticalSlug}&limit=8&status=past`, {
next: { revalidate: 60 }
})
if (!res.ok) return []
@ -30,7 +30,7 @@ async function getRecentShows(verticalSlug: string) {
async function getTopSongs(verticalSlug: string) {
try {
const res = await fetch(`${getApiUrl()}/songs?vertical=${verticalSlug}&limit=5&sort=times_played`, {
const res = await fetch(`${getApiUrl()}/songs?vertical_slug=${verticalSlug}&limit=5&sort=times_played`, {
next: { revalidate: 60 }
})
if (!res.ok) return []