This commit is contained in:
kyj@bowong.ai 2025-08-01 16:08:56 +08:00
parent ecf2b07820
commit cf9b44efa7
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ async def publish_workflow_handler(request):
async with aiohttp.ClientSession() as session:
async with session.post(target_api_url, json=payload, headers=headers) as response:
response_text = await response.text()
if response.status == 200:
if response.status == 200 or response.status == 201:
return web.json_response(
{"status": "success", "message": "Workflow published successfully!", "details": response_text})
else: