(pluginId: string, userId: string)
| 560 | } |
| 561 | |
| 562 | export 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 | |
| 574 | type GetMembersParams = { |
| 575 | page?: number; |
nothing calls this directly
no test coverage detected