0
0
Fork 0

Fix SQL error in admin measures API (#30753)

This commit is contained in:
Claire 2024-06-18 18:04:58 +02:00 committed by GitHub
parent d97fcd0cbb
commit 58ace2e45e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 3 deletions

View file

@ -18,7 +18,7 @@ module Admin::Metrics::Measure::QueryHelper
def generated_series_days
Arel.sql(
<<~SQL.squish
SELECT generate_series(timestamp :start_at, :end_at, '1 day')::date AS period
SELECT generate_series(:start_at::timestamp, :end_at::timestamp, '1 day')::date AS period
SQL
)
end