INNER CODE UNIT · TypeScript

cleanClipboards

raj457036/CopyCat-Clipboard · supabase/functions/clean_expired_clips/index.ts:94

async function cleanClipboards(
  client: SupabaseClient,
) {
  await cleanExpiredMediaClips(client);
  await cleanExpiredClipCollections(client);
}

Deno.serve(async (req) => {
  const authToken = req.headers.get("Authorization");
  const supabaseClient = getSupabaseClient(authToken);

  await cleanClipboards(supabaseClient);

  return new Response(
    JSON.stringify({ "done": true }),
    { headers: { "Content-Type": "application/json" } },
  );
});

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…