Use favorite photos for Homepage Collage
This commit is contained in:
@@ -8,7 +8,10 @@ export async function GET ({}: RequestEvent): Promise<RequestHandlerOutput> {
|
||||
const totalRes = await fetchAPI(`
|
||||
query {
|
||||
photo (
|
||||
filter: { status: { _eq: "published" }},
|
||||
filter: {
|
||||
favorite: { _eq: true },
|
||||
status: { _eq: "published" },
|
||||
},
|
||||
limit: -1,
|
||||
) {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user