diff --git a/CHANGELOG.md b/CHANGELOG.md index b17788ac..a87df979 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.4.2 (unreleased) + +- Fixed error with `slow_queries` method + ## 3.4.1 (2024-02-07) - Added current stats to query details page diff --git a/lib/pghero/methods/query_stats.rb b/lib/pghero/methods/query_stats.rb index d7952c5a..03c6d5cc 100644 --- a/lib/pghero/methods/query_stats.rb +++ b/lib/pghero/methods/query_stats.rb @@ -168,7 +168,7 @@ def clean_query_stats(before: nil) end def slow_queries(query_stats: nil, **options) - query_stats ||= self.query_stats(options) + query_stats ||= self.query_stats(**options) query_stats.select { |q| q[:calls].to_i >= slow_query_calls.to_i && q[:average_time].to_f >= slow_query_ms.to_f } end