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

Function hasUserStarredPlugin

apps/cursor/src/data/queries.ts:562–572  ·  view source on GitHub ↗
(pluginId: string, userId: string)

Source from the content-addressed store, hash-verified

560}
561
562export async function hasUserStarredPlugin(pluginId: string, userId: string) {
563 const supabase = await createClient();
564 const { data } = await supabase
565 .from("plugin_stars")
566 .select("plugin_id")
567 .eq("plugin_id", pluginId)
568 .eq("user_id", userId)
569 .maybeSingle();
570
571 return !!data;
572}
573
574type GetMembersParams = {
575 page?: number;

Callers

nothing calls this directly

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected