From e5e4879e0ccb4b8520a6a435b2d52d069387d9e8 Mon Sep 17 00:00:00 2001 From: Nicholas Yager Date: Sun, 17 Mar 2024 08:42:28 -0400 Subject: [PATCH] fix: Restore Macro functionality in `generate_referehce_update --- dbt_meshify/utilities/references.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_meshify/utilities/references.py b/dbt_meshify/utilities/references.py index eba0569..18f69e8 100644 --- a/dbt_meshify/utilities/references.py +++ b/dbt_meshify/utilities/references.py @@ -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,