From 82b48eee8eb14e26812d8f0afdfc2e492971893f Mon Sep 17 00:00:00 2001 From: bsiggel Date: Sun, 8 Mar 2026 18:48:56 +0000 Subject: [PATCH] fix(api-steps): update response status field in document create, delete, and update handlers --- steps/vmh/webhook/document_create_api_step.py | 4 ++-- steps/vmh/webhook/document_delete_api_step.py | 4 ++-- steps/vmh/webhook/document_update_api_step.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/steps/vmh/webhook/document_create_api_step.py b/steps/vmh/webhook/document_create_api_step.py index bf29ef6..fafb71b 100644 --- a/steps/vmh/webhook/document_create_api_step.py +++ b/steps/vmh/webhook/document_create_api_step.py @@ -56,7 +56,7 @@ async def handler(request: ApiRequest, ctx: FlowContext[Any]) -> ApiResponse: }) return ApiResponse( - status_code=200, + status=200, body={ 'success': True, 'message': f'{len(entity_ids)} Document(s) zum Sync enqueued', @@ -69,7 +69,7 @@ async def handler(request: ApiRequest, ctx: FlowContext[Any]) -> ApiResponse: ctx.logger.error(f"Payload: {request.body}") return ApiResponse( - status_code=500, + status=500, body={ 'success': False, 'error': str(e) diff --git a/steps/vmh/webhook/document_delete_api_step.py b/steps/vmh/webhook/document_delete_api_step.py index cdf04c4..4a7f59d 100644 --- a/steps/vmh/webhook/document_delete_api_step.py +++ b/steps/vmh/webhook/document_delete_api_step.py @@ -55,7 +55,7 @@ async def handler(request: ApiRequest, ctx: FlowContext[Any]) -> ApiResponse: }) return ApiResponse( - status_code=200, + status=200, body={ 'success': True, 'message': f'{len(entity_ids)} Document(s) zum Delete enqueued', @@ -68,7 +68,7 @@ async def handler(request: ApiRequest, ctx: FlowContext[Any]) -> ApiResponse: ctx.logger.error(f"Payload: {request.body}") return ApiResponse( - status_code=500, + status=500, body={ 'success': False, 'error': str(e) diff --git a/steps/vmh/webhook/document_update_api_step.py b/steps/vmh/webhook/document_update_api_step.py index 708aeee..5b3c51b 100644 --- a/steps/vmh/webhook/document_update_api_step.py +++ b/steps/vmh/webhook/document_update_api_step.py @@ -55,7 +55,7 @@ async def handler(request: ApiRequest, ctx: FlowContext[Any]) -> ApiResponse: }) return ApiResponse( - status_code=200, + status=200, body={ 'success': True, 'message': f'{len(entity_ids)} Document(s) zum Sync enqueued', @@ -68,7 +68,7 @@ async def handler(request: ApiRequest, ctx: FlowContext[Any]) -> ApiResponse: ctx.logger.error(f"Payload: {request.body}") return ApiResponse( - status_code=500, + status=500, body={ 'success': False, 'error': str(e)