Skip to content

Commit 4124369

Browse files
committed
Refactor logic and improve handling of merge and tracker data
Updated `tracker_payload.source.config` fallback for better reliability, added a `has_data` method in `merge_logic` for clarity, and replaced manual checks with the new method. Additionally, removed obsolete code from the audience joiner to improve maintainability.
1 parent 6de0bd0 commit 4124369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracardi/service/tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_bridge(tracker_payload: TrackerPayload) -> Optional[ConfigurableBridge]:
3636
# TODO GUI should change it in tracker_payload.source. That is why we copy it
3737

3838
if isinstance(tracker_payload.source, EventSource) and isinstance(tracker_payload.source.config, dict):
39-
tracker_payload.source.config['static_profile_id'] = tracker_payload.source.permanent_profile_id
39+
tracker_payload.source.config['static_profile_id'] = tracker_payload.source.permanent_profile_id or tracker_payload.source.config.get('static_profile_id', False)
4040

4141
if 'webhook' in tracker_payload.source.type:
4242
return WebHookBridge(

0 commit comments

Comments
 (0)