diff --git a/lib/report_generator.rb b/lib/report_generator.rb index 2a2fd90d..3cf27440 100644 --- a/lib/report_generator.rb +++ b/lib/report_generator.rb @@ -15,7 +15,7 @@ def self.generate(query_id, query_params, recipients, opts = {}) return [] if opts[:skip_empty] && result[:pg_result].values.empty? table = ResultToMarkdown.convert(result[:pg_result]) - build_report_pms(query, table, recipients, attach_csv:, result:) + build_report_pms(query, table, recipients, attach_csv: opts[:attach_csv], result:) end private