From 79ba5e1887a701eae8139d4cebf67c4ede576511 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 13 Oct 2026 11:24:15 +0200 Subject: [PATCH] Fixing spelling error among all services --- README.md | 2 +- src/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dc078df..2859407 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Receives notification data from internal services and queues it to RabbitMQ for **Request Body:** ```json { - "receipent_user_id": 12345, + "user_id": 12345, "message": { "title": "New Message", "body": "You have a new notification", diff --git a/src/main.py b/src/main.py index 5e37112..a3bf584 100644 --- a/src/main.py +++ b/src/main.py @@ -24,7 +24,7 @@ api_key_header_internal = APIKeyHeader(name="X-API-Key-Internal") MAX_PAGES = 5 class Notification(BaseModel): - receipent_user_id : int = Field(gt=0) #ToDo fix among all services + user_id : int = Field(gt=0) #ToDo fix among all services message : Dict class PullResponse(BaseModel): @@ -139,7 +139,7 @@ async def receive_notifications( logger.info(f"Received notifcation data from {program_name} for RMQ") logger.debug(f"Notification data: {notification_data}") await request.app.state.rmq_producer.publish( - notification_data.receipent_user_id, + notification_data.user_id, notification_data.message ) logger.info("Successfully queued for delivery to RMQ")