Update Homepage query
Filter published photos only
This commit is contained in:
@@ -5,7 +5,11 @@ export async function get({}: RequestEvent): Promise<RequestHandlerOutput> {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user