diff --git a/src/routes/index.ts b/src/routes/index.ts index a9b9ab1..652bf9f 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -5,7 +5,11 @@ export async function get({}: RequestEvent): Promise { try { const res = await fetchAPI(` query { - photo (limit: 11, sort: ["-date_created"]) { + photo ( + limit: 11, + sort: ["-date_created"], + filter: { status: { _eq: "published" }}, + ) { slug title city