fix: type-check all edge functions in ci

This commit is contained in:
Felipe Domingues 2026-05-28 20:24:06 -03:00
parent 871b3f809a
commit 63984ba135
3 changed files with 16 additions and 20 deletions

View file

@ -52,12 +52,12 @@ Deno.serve(async (req) => {
// tentamos atualizar existente primeiro via SQL direto.
try {
// 1) Tenta achar entry existente
const { data: existing } = await admin
const { data: existingData } = await admin
.from("vault.decrypted_secrets" as never)
.select("id, decrypted_secret")
.eq("name", "internal_function_secret")
.maybeSingle()
.returns<{ id: string; decrypted_secret: string } | null>();
.maybeSingle();
const existing = existingData as { id: string; decrypted_secret: string } | null;
if (existing && existing.decrypted_secret === secretValue) {
return json(200, { ok: true, action: "already_synced" });