fix
This commit is contained in:
parent
ecf2b07820
commit
cf9b44efa7
|
|
@ -109,7 +109,7 @@ async def publish_workflow_handler(request):
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.post(target_api_url, json=payload, headers=headers) as response:
|
async with session.post(target_api_url, json=payload, headers=headers) as response:
|
||||||
response_text = await response.text()
|
response_text = await response.text()
|
||||||
if response.status == 200:
|
if response.status == 200 or response.status == 201:
|
||||||
return web.json_response(
|
return web.json_response(
|
||||||
{"status": "success", "message": "Workflow published successfully!", "details": response_text})
|
{"status": "success", "message": "Workflow published successfully!", "details": response_text})
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue