diff --git a/src/routes/photos/+page.server.ts b/src/routes/photos/+page.server.ts index 1354477..19fe2b5 100644 --- a/src/routes/photos/+page.server.ts +++ b/src/routes/photos/+page.server.ts @@ -52,7 +52,16 @@ export const load: PageServerLoad = async ({ url }) => { } # 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 } } }`)