Skip to content

Commit ce24975

Browse files
authored
fix(backend): Unbreak get_webhook query (#10850)
- Resolves #10849 ### Changes πŸ—οΈ - Use `AGENT_PRESET_INCLUDE` in `INTEGRATION_WEBHOOK_INCLUDE` so the `AgentPreset.from_db(..)` doesn't break ### Checklist πŸ“‹ #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Webhook ingress works
1 parent 75c90e4 commit ce24975

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

β€Žautogpt_platform/backend/backend/data/includes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,15 @@ def graph_execution_include(
5959
}
6060

6161

62+
AGENT_PRESET_INCLUDE: prisma.types.AgentPresetInclude = {
63+
"InputPresets": True,
64+
"Webhook": True,
65+
}
66+
67+
6268
INTEGRATION_WEBHOOK_INCLUDE: prisma.types.IntegrationWebhookInclude = {
6369
"AgentNodes": {"include": AGENT_NODE_INCLUDE},
64-
"AgentPresets": {"include": {"InputPresets": True}},
70+
"AgentPresets": {"include": AGENT_PRESET_INCLUDE},
6571
}
6672

6773

@@ -75,9 +81,3 @@ def library_agent_include(user_id: str) -> prisma.types.LibraryAgentInclude:
7581
},
7682
"Creator": True,
7783
}
78-
79-
80-
AGENT_PRESET_INCLUDE: prisma.types.AgentPresetInclude = {
81-
"InputPresets": True,
82-
"Webhook": True,
83-
}

0 commit comments

Comments
Β (0)