()
| 471 | } |
| 472 | |
| 473 | export async function getPendingPlugins() { |
| 474 | const supabase = await createClient(); |
| 475 | |
| 476 | return fetchAllPages<PluginRow>(async (from, to) => { |
| 477 | const { data, error } = await supabase |
| 478 | .from("plugins") |
| 479 | .select("*, plugin_components(*)") |
| 480 | .eq("active", false) |
| 481 | .order("created_at", { ascending: false }) |
| 482 | .range(from, to); |
| 483 | return { data: data as PluginRow[] | null, error }; |
| 484 | }, 100); |
| 485 | } |
| 486 | |
| 487 | export async function getFlaggedPlugins() { |
| 488 | const supabase = await createClient(); |
no test coverage detected