MCPcopy Index your code
hub / github.com/cursor/community-plugins / archivePluginScan

Function archivePluginScan

apps/cursor/src/lib/plugins/queue.ts:52–65  ·  view source on GitHub ↗
(messageId: number)

Source from the content-addressed store, hash-verified

50}
51
52export async function archivePluginScan(messageId: number): Promise<void> {
53 const supabase = await createAdminClient();
54 const { error } = await supabase
55 // biome-ignore lint/suspicious/noExplicitAny: pgmq_public is not in the generated types
56 .schema("pgmq_public" as any)
57 .rpc("archive", {
58 queue_name: PLUGIN_SCAN_QUEUE,
59 message_id: messageId,
60 });
61
62 if (error) {
63 throw new Error(`pgmq_public.archive failed: ${error.message}`);
64 }
65}
66
67const DRAIN_PATH = "/api/queue/plugin-scans/drain";
68

Callers 1

GETFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected