fix(api): bind scoped lookups to nested owner refs (#38470)

This commit is contained in:
WH-2099
2026-07-15 09:31:09 +00:00
committed by GitHub
parent b721e7a32d
commit 6a511da325
28 changed files with 708 additions and 215 deletions
+2 -2
View File
@@ -153,8 +153,8 @@ class AppMCPServerController(Resource):
select(AppMCPServer)
.where(
AppMCPServer.id == server_ref.server_id,
AppMCPServer.tenant_id == server_ref.tenant_id,
AppMCPServer.app_id == server_ref.app_id,
AppMCPServer.tenant_id == server_ref.app.tenant_id,
AppMCPServer.app_id == server_ref.app.app_id,
)
.limit(1)
)