Skip to content

Commit

Permalink
archive flow runs based on modified instead of created
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed May 19, 2018
1 parent f96a5a9 commit 35c2c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ FROM (
JOIN LATERAL (SELECT uuid, name from flows_flow where flows_flow.id = fr.flow_id) as flow_struct ON True
JOIN LATERAL (select uuid, name from contacts_contact cc where cc.id = fr.contact_id) as contact_struct ON True
WHERE fr.org_id = $2 AND fr.created_on >= $3 AND fr.created_on < $4
ORDER BY fr.created_on ASC, id ASC
WHERE fr.org_id = $2 AND fr.modified_on >= $3 AND fr.modified_on < $4
ORDER BY fr.modified_on ASC, id ASC
) as rec;
`

Expand Down

0 comments on commit 35c2c9d

Please sign in to comment.