From 0aef6a06728a78332265f21939b8750f6de23f12 Mon Sep 17 00:00:00 2001 From: ff137 Date: Fri, 8 Mar 2024 16:45:36 +0200 Subject: [PATCH] :construction: test settings --- redis_events/redis_events/v1_0/redis_queue/events/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redis_events/redis_events/v1_0/redis_queue/events/__init__.py b/redis_events/redis_events/v1_0/redis_queue/events/__init__.py index cd0828aec..50a9a1f2a 100755 --- a/redis_events/redis_events/v1_0/redis_queue/events/__init__.py +++ b/redis_events/redis_events/v1_0/redis_queue/events/__init__.py @@ -117,6 +117,7 @@ async def handle_event(profile: Profile, event: EventWithMetadata): origin = profile.settings.get("default_label") group_id = profile.settings.get("wallet.group_id") + settings = {"settings": profile.settings.to_dict()} metadata = {"time_ns": time.time_ns()} metadata_wallet_id = {"x-wallet-id": wallet_id} if wallet_id else {} @@ -125,6 +126,7 @@ async def handle_event(profile: Profile, event: EventWithMetadata): metadata.update(metadata_wallet_id) metadata.update(metadata_group_id) metadata.update(metadata_origin) + metadata.update(settings) outbound = str.encode( json.dumps({"payload": payload, "metadata": metadata}),