Update photo queries to match Postgres migration

This commit is contained in:
2022-09-19 12:50:36 +02:00
parent 719c7b6f87
commit b1448f9db3
3 changed files with 99 additions and 77 deletions

View File

@@ -24,7 +24,7 @@ export const load: PageServerLoad = async () => {
// Query these random photos from IDs
const photosRes = await fetchAPI(`query {
photo (filter: { id: { _in: [${randomPhotosIds}] }}) {
photo (filter: { id: { _in: "${randomPhotosIds}" }}) {
slug
title
city