diff --git a/pages/tv/live/index.vue b/pages/tv/live/index.vue index d15d908..b15828a 100644 --- a/pages/tv/live/index.vue +++ b/pages/tv/live/index.vue @@ -25,7 +25,11 @@ const directusUrl = process.env.DIRECTUS_TV_URL || tvUrl; const directus = createDirectus(directusUrl).with(rest()); const globals = await directus.request(readSingleton('globals')); -let events = await directus.request(readItems('events', { sort: ['date_start'] })); + +let events = await directus.request( + readItems('events', { sort: ['date_start'], filter: { status: { _eq: 'published' } } }), +); + events = events.map((event) => ({ ...event, published: event.date_start })); definePageMeta({