diff --git a/create-default-groups.js b/create-default-groups.js index 0968c93..c92dfb6 100644 --- a/create-default-groups.js +++ b/create-default-groups.js @@ -100,10 +100,14 @@ const main = async (options) => { ignoreDuplicates: true, }); + const orgAdminGroup = organizationGroupInserts.find( + (g) => (g.is_admin = true) + ); + const getOrgAdminResponse = await supabase .from('organization_groups') .select() - .eq('id', orgGroup.id); + .eq('id', orgAdminGroup.id); console.info('Organization Admin Group: '); console.table(getOrgAdminResponse.data);