mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 06:56:44 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
3233786616
commit
44a251cb16
2 changed files with 2 additions and 10 deletions
|
|
@ -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>>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue