fix: sync workflow description and name to MCP server on update (#33637)

This commit is contained in:
Desel72 2026-03-18 06:04:45 -05:00 committed by GitHub
parent a87b928079
commit 7c99c9f3e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,13 +103,13 @@ class AppMCPServerController(Resource):
raise NotFound()
description = payload.description
if description is None:
pass
elif not description:
if description is None or not description:
server.description = app_model.description or ""
else:
server.description = description
server.name = app_model.name
server.parameters = json.dumps(payload.parameters, ensure_ascii=False)
if payload.status:
try: