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)