From 300b6f46f1b4bd8fca0a11af90ceeb6329b8d29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 3 Sep 2024 14:34:05 +0200 Subject: [PATCH] Add signatureZoneIndex to published message The 'signatureZoneIndex' field is now included in the message body published to the outbound exchange. This change ensures that all necessary information is transmitted. --- pythonProject/worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonProject/worker.py b/pythonProject/worker.py index c074eda..eb65f46 100644 --- a/pythonProject/worker.py +++ b/pythonProject/worker.py @@ -58,6 +58,7 @@ def on_message(channel, method_frame, header_frame, body): channel.basic_publish(exchange=EXCHANGE_OUT, body=json.dumps({'signatureId': body_content['signatureId'], + 'signatureZoneIndex': body_content['signatureZoneIndex'], 'content': base64.b64encode(signed.read()).decode('utf-8')}), properties=pika.BasicProperties(content_type='application/json', delivery_mode=pika.DeliveryMode.Transient),