Skip to content

Commit

Permalink
Fix: Use escaped keys in StateProxy serialization
Browse files Browse the repository at this point in the history
Corrected the use of escaped keys in serializing StateProxy mutations. Replaced instance where unescaped key was used, ensuring consistency and correct handling of keys with dots.
  • Loading branch information
mmikita95 committed Jan 24, 2024
1 parent be9663e commit 6ea69b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streamsync/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def get_mutations_as_dict(self) -> Dict[str, Any]:
serialised_value = None
if isinstance(value, StateProxy):
if value.initial_assignment:
serialised_mutations[key] = serialised_value
serialised_mutations[escaped_key] = serialised_value
value.initial_assignment = False
child_mutations = value.get_mutations_as_dict()
if child_mutations is None:
Expand Down

0 comments on commit 6ea69b7

Please sign in to comment.