Don't create a nested message, fool
This commit is contained in:
1 parent
b5c5717c6f
commit
0205ff14f6
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "lib-send-notifications"
|
name = "lib-send-notifications"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
description = "Shared library to send notifications via the internal backend API"
|
description = "Shared library to send notifications via the internal backend API"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
authors = [{ name = "Florian Gänsejunge" }]
|
authors = [{ name = "Florian Gänsejunge" }]
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ class NotificationClient:
|
|||||||
}
|
}
|
||||||
payload = {
|
payload = {
|
||||||
"user_id": user_id,
|
"user_id": user_id,
|
||||||
"message": {"message": message.to_dict()},
|
"message": {message.to_dict()},
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.debug("Sending notification: title=%r body=%r", title, body)
|
logger.debug("Sending notification: title=%r body=%r", title, body)
|
||||||
|
|||||||
Reference in new issue
Block a user