(pluginId: string, errorMessage: string)
| 266 | * bury path without duplicating the update shape. |
| 267 | */ |
| 268 | export async function markScanFailed(pluginId: string, errorMessage: string) { |
| 269 | const supabase = await createClient(); |
| 270 | await supabase |
| 271 | .from("plugins") |
| 272 | .update({ |
| 273 | scan_status: "error", |
| 274 | flag_summary: errorMessage.slice(0, 500), |
| 275 | last_scanned_at: new Date().toISOString(), |
| 276 | }) |
| 277 | .eq("id", pluginId); |
| 278 | } |
| 279 | |
| 280 | async function applyBlockedShortCircuit(pluginId: string) { |
| 281 | const supabase = await createClient(); |
no test coverage detected