Update Homepage query

Filter published photos only
This commit is contained in:
2022-05-31 18:34:07 +02:00
parent 8010ea024d
commit ecc051a439

View File

@@ -5,7 +5,11 @@ export async function get({}: RequestEvent): Promise<RequestHandlerOutput> {
try { try {
const res = await fetchAPI(` const res = await fetchAPI(`
query { query {
photo (limit: 11, sort: ["-date_created"]) { photo (
limit: 11,
sort: ["-date_created"],
filter: { status: { _eq: "published" }},
) {
slug slug
title title
city city