Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-04-26 20:25:12 +00:00
parent 1e5343e089
commit 2a2550e0cf

View file

@ -18,6 +18,8 @@ export interface AgentInstance {
telegram_onboarding_completed: boolean;
onboarding_completed: boolean;
agent_name: string | null;
managed_bot_pending: boolean;
managed_bot_suggested_username: string | null;
created_at: string;
}
@ -33,7 +35,7 @@ export function useAgentInstance() {
const { data, error } = await supabase
.from("agent_instances")
.select(
"id, user_id, uuid_tenant, status, telegram_bot_username, telegram_bot_token_vault_id, telegram_webhook_configured, telegram_token_invalid, telegram_first_message_received_at, telegram_connected_at, telegram_onboarding_completed, onboarding_completed, agent_name, created_at",
"id, user_id, uuid_tenant, status, telegram_bot_username, telegram_bot_token_vault_id, telegram_webhook_configured, telegram_token_invalid, telegram_first_message_received_at, telegram_connected_at, telegram_onboarding_completed, onboarding_completed, agent_name, managed_bot_pending, managed_bot_suggested_username, created_at",
)
.eq("user_id", user!.id)
.maybeSingle();