add push service
This commit is contained in:
parent
6515e96649
commit
7ba1d5a717
@ -9,6 +9,7 @@ async def send_internal_message(
|
||||
sender: str,
|
||||
user_id: UUID,
|
||||
content: str,
|
||||
broker_customization_msg: str,
|
||||
with_httpexception = False
|
||||
) -> dict:
|
||||
try:
|
||||
@ -16,7 +17,8 @@ async def send_internal_message(
|
||||
f"{settings.CHAT_PRIVATE_SERVICE}/internal/send",
|
||||
json={"sender": str(sender),
|
||||
"user_id": str(user_id),
|
||||
"content": str(content)
|
||||
"content": str(content),
|
||||
"broker_customization_msg": str(broker_customization_msg),
|
||||
})
|
||||
|
||||
if response.status_code != 200:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "common-lib"
|
||||
version = "0.0.37"
|
||||
version = "0.0.38"
|
||||
description = "Библиотека общих компонентов для микросервисов yobble"
|
||||
authors = [{ name = "cheykrym", email = "you@example.com" }]
|
||||
license = "MIT"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user