mirror of https://github.com/langgenius/dify.git
minor fix: wrong and (#22242)
This commit is contained in:
parent
9f013f7644
commit
6c233e05a9
|
|
@ -92,7 +92,8 @@ class AppMCPServerRefreshController(Resource):
|
||||||
raise NotFound()
|
raise NotFound()
|
||||||
server = (
|
server = (
|
||||||
db.session.query(AppMCPServer)
|
db.session.query(AppMCPServer)
|
||||||
.filter(AppMCPServer.id == server_id and AppMCPServer.tenant_id == current_user.current_tenant_id)
|
.filter(AppMCPServer.id == server_id)
|
||||||
|
.filter(AppMCPServer.tenant_id == current_user.current_tenant_id)
|
||||||
.first()
|
.first()
|
||||||
)
|
)
|
||||||
if not server:
|
if not server:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue