Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-05-22 22:21:43 +00:00
parent 3233786616
commit 44a251cb16
2 changed files with 2 additions and 10 deletions

View file

@ -670,12 +670,3 @@ const rootRouteChildren: RootRouteChildren = {
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()
import type { getRouter } from './router.tsx'
import type { createStart } from '@tanstack/react-start'
declare module '@tanstack/react-start' {
interface Register {
ssr: true
router: Awaited<ReturnType<typeof getRouter>>
}
}

View file

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