Fixing spelling error among all services
This commit is contained in:
1 parent
e7a6e95311
commit
79ba5e1887
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user