diff --git a/src/routes/[country]/[location]/index.ts b/src/routes/[country]/[location]/index.ts index fd6430d..bbd1986 100644 --- a/src/routes/[country]/[location]/index.ts +++ b/src/routes/[country]/[location]/index.ts @@ -16,14 +16,14 @@ export const photoFields = ` export async function get({ params }: RequestEvent): Promise { try { - const { location } = params + const { location: slug } = params // Query const res = await fetchAPI(` query { location ( filter: { - slug: { _eq: "${location}" }, + slug: { _eq: "${slug}" }, status: { _eq: "published" }, } ) { @@ -47,7 +47,7 @@ export async function get({ params }: RequestEvent): Promise