MCPcopy Create free account
hub / github.com/cursor/community-plugins / getCompanyProfile

Function getCompanyProfile

apps/cursor/src/data/queries.ts:136–140  ·  view source on GitHub ↗
(slug: string, userId?: string)

Source from the content-addressed store, hash-verified

134}
135
136export 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
142export async function getUserCompanies(userId: string) {
143 const supabase = await createClient();

Callers 3

CompanyFunction · 0.90
generateMetadataFunction · 0.90
renderImageFunction · 0.90

Calls 2

fetchCompanyProfileFunction · 0.85
getPublicCompanyProfileFunction · 0.85

Tested by

no test coverage detected