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