From cf9b44efa78c96d926a6944eee5b31369576585a Mon Sep 17 00:00:00 2001 From: "kyj@bowong.ai" Date: Fri, 1 Aug 2025 16:08:56 +0800 Subject: [PATCH] fix --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index dfb19df..54212e4 100644 --- a/__init__.py +++ b/__init__.py @@ -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: