(slug: string, userId?: string)
| 134 | } |
| 135 | |
| 136 | export async function getCompanyProfile(slug: string, userId?: string) { |
| 137 | // Owner reads stay uncached so edits are immediately visible. |
| 138 | if (userId) return fetchCompanyProfile(slug, userId); |
| 139 | return getPublicCompanyProfile(slug); |
| 140 | } |
| 141 | |
| 142 | export async function getUserCompanies(userId: string) { |
| 143 | const supabase = await createClient(); |
no test coverage detected