Skip to content

Commit

Permalink
🚧 test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Mar 8, 2024
1 parent dcfb833 commit 0aef6a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redis_events/redis_events/v1_0/redis_queue/events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand All @@ -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}),
Expand Down

0 comments on commit 0aef6a0

Please sign in to comment.