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

Function getUserCompanies

apps/cursor/src/data/queries.ts:142–152  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

140}
141
142export 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
154async function fetchUserPlugins(
155 userId: string,

Callers 1

ProfileCompaniesFunction · 0.90

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected