From 44a251cb16016922b117d90dde626b5208de3480 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 22:21:43 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- src/routeTree.gen.ts | 9 --------- supabase/functions/validate-telegram-bot/index.ts | 3 ++- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index 0bb5aca..0fe84b5 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -670,12 +670,3 @@ const rootRouteChildren: RootRouteChildren = { export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) ._addFileTypes() - -import type { getRouter } from './router.tsx' -import type { createStart } from '@tanstack/react-start' -declare module '@tanstack/react-start' { - interface Register { - ssr: true - router: Awaited> - } -} diff --git a/supabase/functions/validate-telegram-bot/index.ts b/supabase/functions/validate-telegram-bot/index.ts index c3051c8..fd5c671 100644 --- a/supabase/functions/validate-telegram-bot/index.ts +++ b/supabase/functions/validate-telegram-bot/index.ts @@ -98,12 +98,13 @@ Deno.serve(async (req) => { 409, ); } - if (agent.status === "suspended" || agent.status === "error") { + if (agent.status === "suspended") { return jsonResponse( { error: "Agente suspenso. Regularize sua assinatura antes de conectar o Telegram." }, 403, ); } + // status='error' por falta de token anterior é recuperável — apenas seguimos. // 4) Verifica unicidade do bot username (em outro agent_instance) const { data: conflict } = await admin