(userId: string)
| 140 | } |
| 141 | |
| 142 | export async function getUserCompanies(userId: string) { |
| 143 | const supabase = await createClient(); |
| 144 | const { data, error } = await supabase |
| 145 | .from("companies") |
| 146 | .select( |
| 147 | "id, name, slug, image, location, bio, website, social_x_link, hero, public, owner_id, created_at", |
| 148 | ) |
| 149 | .eq("owner_id", userId); |
| 150 | |
| 151 | return { data, error }; |
| 152 | } |
| 153 | |
| 154 | async function fetchUserPlugins( |
| 155 | userId: string, |
no test coverage detected