mirror of
https://github.com/Significant-Gravitas/Auto-GPT.git
synced 2025-01-08 11:57:32 +08:00
fix(backend): Add migrations to fix credentials inputs with invalid provider "llm" (vol. 4)
Another attempt at unbreaking this raw Prisma query
This commit is contained in:
parent
29688758c4
commit
1c6890486f
@ -550,10 +550,10 @@ async def fix_llm_provider_credentials():
|
||||
SELECT "User".id user_id,
|
||||
node.id node_id,
|
||||
node."constantInput" node_preset_input
|
||||
FROM platform."AgentGraph" graph
|
||||
LEFT JOIN platform."AgentNode" node
|
||||
FROM "AgentNode" node
|
||||
LEFT JOIN "AgentGraph" graph
|
||||
ON node."agentGraphId" = graph.id
|
||||
LEFT JOIN platform."User"
|
||||
LEFT JOIN "User"
|
||||
ON graph."userId" = "User".id
|
||||
WHERE node."constantInput"::jsonb->'credentials'->>'provider' = 'llm'
|
||||
ORDER BY user_id;
|
||||
|
Loading…
Reference in New Issue
Block a user