fix: change docs upload template and handler

This commit is contained in:
2026-06-25 22:57:16 +03:00
parent 3700fb1ccc
commit 768d9d8849
2 changed files with 4 additions and 6 deletions

View File

@@ -1,3 +1,2 @@
#docs
Клиент с ID: {{id_client}}
Отправил документы на проверку
Клиент юр. лицо. отправил документы на проверку

View File

@@ -22,8 +22,8 @@ class Metadata(BaseModel):
class Payload(BaseModel):
id_client: str
usdt_amount: Optional[Decimal] = None
id_client: Optional[str] = None
rub_amount: Optional[Decimal] = None
class NotifyCreated(BaseModel):
@@ -47,7 +47,7 @@ async def consume_notify(
logger.info(
f"received event={msg_body.event} "
f"id_client={msg_body.payload.id_client} "
f"id_client={msg_body.payload.id_client if msg_body.payload.id_client else 'New Client'} "
f"trace_id={trace_id}"
)
@@ -61,7 +61,6 @@ async def consume_notify(
elif msg_body.event == 'docs_upload':
text = renderer.render(
'docs_notify.txt',
id_client=msg_body.payload.id_client,
trace_id=trace_id
)