Use favorite photos for Homepage Collage

This commit is contained in:
2022-07-31 23:20:38 +02:00
parent 5975c8e51a
commit 95b2398a00

View File

@@ -8,7 +8,10 @@ export async function GET ({}: RequestEvent): Promise<RequestHandlerOutput> {
const totalRes = await fetchAPI(` const totalRes = await fetchAPI(`
query { query {
photo ( photo (
filter: { status: { _eq: "published" }}, filter: {
favorite: { _eq: true },
status: { _eq: "published" },
},
limit: -1, limit: -1,
) { ) {
id id