Skip to content

Commit

Permalink
fix: Restore Macro functionality in `generate_referehce_update
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyager committed Mar 17, 2024
1 parent ecfd4c7 commit e5e4879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt_meshify/utilities/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def generate_reference_update(
) -> Union[FileChange, ResourceChange]:
"""Generate FileChanges that update the references in the downstream_node's code."""

if isinstance(downstream_node, CompiledNode):
if isinstance(downstream_node, CompiledNode) or isinstance(downstream_node, Macro):
language = downstream_node.language if hasattr(downstream_node, "language") else "sql"
updated_code = self.ref_update_methods[language](
model_name=upstream_node.name,
Expand Down

0 comments on commit e5e4879

Please sign in to comment.