From d8c7338c76005f9e7c83beeaccd32f1a0773da82 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 24 Apr 2026 23:05:26 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- supabase/functions/refresh-integration-token/index.ts | 3 ++- supabase/functions/telegram-webhook/index.ts | 3 ++- supabase/functions/validate-telegram-bot/index.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/supabase/functions/refresh-integration-token/index.ts b/supabase/functions/refresh-integration-token/index.ts index 5cd6a04..1de3936 100644 --- a/supabase/functions/refresh-integration-token/index.ts +++ b/supabase/functions/refresh-integration-token/index.ts @@ -16,8 +16,9 @@ function jsonResponse(body: unknown, status = 200): Response { }); } +// deno-lint-ignore no-explicit-any async function getDecryptedSecret( - admin: ReturnType, + admin: any, secretId: string, ): Promise { const { data, error } = await admin diff --git a/supabase/functions/telegram-webhook/index.ts b/supabase/functions/telegram-webhook/index.ts index 3a61b95..6f0ac89 100644 --- a/supabase/functions/telegram-webhook/index.ts +++ b/supabase/functions/telegram-webhook/index.ts @@ -16,8 +16,9 @@ function firstName(fullName: string | null | undefined): string { return parts[0] || "Mika"; } +// deno-lint-ignore no-explicit-any async function getDecryptedSecret( - admin: ReturnType, + admin: any, secretId: string, ): Promise { const { data, error } = await admin diff --git a/supabase/functions/validate-telegram-bot/index.ts b/supabase/functions/validate-telegram-bot/index.ts index 89f3446..c3051c8 100644 --- a/supabase/functions/validate-telegram-bot/index.ts +++ b/supabase/functions/validate-telegram-bot/index.ts @@ -125,7 +125,7 @@ Deno.serve(async (req) => { // 5) Se já houver um vault_id antigo, remove (reconexão) if (agent.telegram_bot_token_vault_id) { - await admin.rpc("exec_sql_void", {}).catch(() => {}); + try { await admin.rpc("exec_sql_void", {} as never); } catch { /* ignore */ } // tenta remover diretamente; ignora falha const { error: delErr } = await admin .from("vault.secrets" as unknown as never)