diff --git a/models/streamline/core/realtime/streamline__get_transaction_results_realtime.sql b/models/streamline/core/realtime/streamline__get_transaction_results_realtime.sql index 2dae186..0229a64 100644 --- a/models/streamline/core/realtime/streamline__get_transaction_results_realtime.sql +++ b/models/streamline/core/realtime/streamline__get_transaction_results_realtime.sql @@ -7,13 +7,13 @@ tags = ['streamline_realtime'] ) }} -WITH last_3_days AS ({% if var('STREAMLINE_RUN_HISTORY') %} +WITH last_3_days AS ( + {% if var('STREAMLINE_RUN_HISTORY') %} SELECT MAX(root_height) AS block_height FROM {{ ref('seeds__network_version') }} - {% else %} SELECT MAX(block_height) - 210000 AS block_height FROM