Read the blog post about how this app was created here: Create an Issue Tracker in 15 minutes
import { Resource } from "https://deno.land/x/windmill@v1.60.0/mod.ts";
import { createClient } from "https://esm.sh/@supabase/supabase-js@2";
export async function main(auth: Resource<"supabase">, id: string) {
const client = createClient(auth.supabaseUrl, auth.supabaseKey);
return await client.from("issues").delete().filter("id", "eq", id);
}