mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 08:36:44 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
fbcc455090
commit
bb64cb46f9
1 changed files with 3 additions and 2 deletions
|
|
@ -98,9 +98,10 @@ Deno.serve(async (req) => {
|
|||
return jsonResponse(409, { error: "agent_instance is not in provisioning status", status: agent.status });
|
||||
}
|
||||
|
||||
// Se já existe railway_service_id → fluxo de UPDATE (não tenta criar novo serviço)
|
||||
if (agent.railway_service_id) {
|
||||
console.log(`[provision-agent] já tem railway_service_id=${agent.railway_service_id}, abortando`);
|
||||
return jsonResponse(409, { error: "agent_instance already has a railway_service_id", railway_service_id: agent.railway_service_id });
|
||||
console.log(`[provision-agent] railway_service_id já existe (${agent.railway_service_id}) → modo update`);
|
||||
return await handleUpdateExistingService(supabase, agent, body);
|
||||
}
|
||||
|
||||
// 1b) Carregar profile (full_name → nome do agente)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue