Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-04-24 23:05:26 +00:00
parent 74f7a69991
commit d8c7338c76
3 changed files with 5 additions and 3 deletions

View file

@ -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)