Fetch published global countries and locations

This commit is contained in:
2021-10-04 13:07:38 +02:00
parent b1e9c7da0c
commit 7b165471d3

View File

@@ -28,7 +28,7 @@
export async function load ({ page, session, fetch, context }) {
const res = await fetchAPI(`
query {
location {
location (filter: { status: { _eq: "published" }}) {
name
slug
coordinates
@@ -48,7 +48,7 @@
}
}
country {
country (filter: { status: { _eq: "published" }}) {
name
slug
flag {