Skip to content
Snippets Groups Projects
Commit 2a257c96 authored by Audrey Hamelers's avatar Audrey Hamelers
Browse files

fix metrics tagging limiting by total check dates

parent 83b11c8e
No related branches found
No related tags found
1 merge request!398fix metrics tagging limiting by total check dates
......@@ -125,7 +125,7 @@ with audits as (
from (
select aa.manuscript_id, aa.manuscript_version, ab.sent, aa.created, generate_series(ab.sent, aa.created - '1 day'::interval, '1 day'::interval) as date_range
from (
select * from tag_audits at
select at.manuscript_id, at.manuscript_version, at.created from tag_audits at
where at.created between date_trunc('month', current_date AT TIME ZONE 'Europe/London' - '${endMonth} month'::interval) and date_trunc('month', current_date AT TIME ZONE 'Europe/London' - '${startMonth -
1} month'::interval)
union
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment