Skip to content
Snippets Groups Projects

Greg 86 notification format changes

Merged Jonas Braathen requested to merge GREG-86-notification-format-changes into master
3 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -49,7 +49,6 @@ def create_cloud_event_payload(n: Notification) -> str:
@@ -49,7 +49,6 @@ def create_cloud_event_payload(n: Notification) -> str:
and source, i.e no.local.greg.person.add
and source, i.e no.local.greg.person.add
"""
"""
object_type = camel_to_snake(n.object_type)
content: dict[str, Union[str, dict[str, str]]] = {
content: dict[str, Union[str, dict[str, str]]] = {
"id": str(n.id),
"id": str(n.id),
"source": f"greg:{settings.INSTANCE_NAME}:{settings.ENVIRONMENT}",
"source": f"greg:{settings.INSTANCE_NAME}:{settings.ENVIRONMENT}",
Loading