Only count published photos on Grid count
This commit is contained in:
@@ -52,7 +52,16 @@ export const load: PageServerLoad = async ({ url }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Total
|
# Total
|
||||||
total_published: photo_aggregated ${queryCountry !== 'all' ? `(filter: { location: { country: { slug: { _eq: "${queryCountry}" }}}})` : ''} {
|
total_published: photo_aggregated ${queryCountry !== 'all' ? `(
|
||||||
|
filter: {
|
||||||
|
location: { country: { slug: { _eq: "${queryCountry}" }}},
|
||||||
|
status: { _eq: "published" },
|
||||||
|
}
|
||||||
|
)` : `(
|
||||||
|
filter: {
|
||||||
|
status: { _eq: "published" },
|
||||||
|
}
|
||||||
|
)`} {
|
||||||
count { id }
|
count { id }
|
||||||
}
|
}
|
||||||
}`)
|
}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user