Fixed it being an unhashable dict

This commit is contained in:
florian committed 2026-11-12 09:33:36 +01:00
1 parent 0205ff14f6
commit 6654e312b6
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -1,13 +1,13 @@
[project] [project]
name = "lib-send-notifications" name = "lib-send-notifications"
version = "0.2.1" version = "0.2.2"
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" }]
dependencies = [ dependencies = [
"lib-secret-manager>=0.3.0", "lib-secret-manager>=0.3.0",
"requests>=2.31", "requests>=2.31",
"lib-shared-models", "lib-shared-models>=0.1.1",
] ]
[build-system] [build-system]
+1 -1
View File
@@ -181,7 +181,7 @@ class NotificationClient:
} }
payload = { payload = {
"user_id": user_id, "user_id": user_id,
"message": {message.to_dict()}, "message": message.to_dict(exclude_none=True),
} }
logger.debug("Sending notification: title=%r body=%r", title, body) logger.debug("Sending notification: title=%r body=%r", title, body)