diff --git a/apps/web/app/composables/useSupabaseCsv.ts b/apps/web/app/composables/useSupabaseCsv.ts index 3e61c73b..7d4d27f6 100644 --- a/apps/web/app/composables/useSupabaseCsv.ts +++ b/apps/web/app/composables/useSupabaseCsv.ts @@ -6,28 +6,40 @@ export function useSupabaseCsv() { const client = useSupabaseClient() async function exportSpeaker(table: Extract) { - const { data, error } = await client.from(table).select().csv() + const { data, error } = await client.from(table) + .select() + .eq('is_open', true) + .csv() if (error) return return data } async function exportSponsor(table: Extract) { - const { data, error } = await client.from(table).select().csv() + const { data, error } = await client.from(table) + .select() + .eq('is_open', true) + .csv() if (error) return return data } async function exportAttendee(table: Extract) { - const { data, error } = await client.from(table).select().csv() + const { data, error } = await client.from(table) + .select('display_name, image_url, image_file_name') + .neq('activated_at', null) + .csv() if (error) return return data } async function exportStaff(table: Extract) { - const { data, error } = await client.from(table).select().csv() + const { data, error } = await client.from(table) + .select() + .eq('is_open', true) + .csv() if (error) return return data