Skip to content

Commit

Permalink
fix: Use mapped stream aliases when handling ACTIVATE_VERSION messa…
Browse files Browse the repository at this point in the history
…ges in the base target class

Closes #1055
  • Loading branch information
edgarrmondragon committed Jul 19, 2024
1 parent 119a5ec commit 5db0c23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions singer_sdk/target_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,10 @@ def _process_activate_version_message(self, message_dict: dict) -> None:
message_dict: TODO
"""
stream_name = message_dict["stream"]
sink = self.get_sink(stream_name)
sink.activate_version(message_dict["version"])

for stream_map in self.mapper.stream_maps[stream_name]:
sink = self.get_sink(stream_map.stream_alias)
sink.activate_version(message_dict["version"])

def _process_batch_message(self, message_dict: dict) -> None:
"""Handle the optional BATCH message extension.
Expand Down

0 comments on commit 5db0c23

Please sign in to comment.