From 95b2398a0017126aa65c5ce36f834a75fd1d26ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sun, 31 Jul 2022 23:20:38 +0200 Subject: [PATCH] Use favorite photos for Homepage Collage --- src/routes/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routes/index.ts b/src/routes/index.ts index fb659cf..f5698d3 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -8,7 +8,10 @@ export async function GET ({}: RequestEvent): Promise { const totalRes = await fetchAPI(` query { photo ( - filter: { status: { _eq: "published" }}, + filter: { + favorite: { _eq: true }, + status: { _eq: "published" }, + }, limit: -1, ) { id