Skip to content

Commit

Permalink
Signalements - Augmenter la fenêtre de temps requêtée pour l'archivag…
Browse files Browse the repository at this point in the history
…e automatique de signalements (#4046)

## Linked issues

- Resolve #4008

----

- [ ] Tests E2E (Cypress)
  • Loading branch information
louptheron authored Jan 28, 2025
2 parents 1d6390b + 5752652 commit cd6d936
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ interface DBReportingRepository : CrudRepository<ReportingEntity, Int> {
SELECT lr.cfr, lr.ircs, lr.external_identification, lr.operation_number, MAX(lr.operation_datetime_utc) as last_dep_date_time
FROM logbook_reports lr
WHERE
lr.operation_datetime_utc > NOW() - INTERVAL '1 hour' AND
lr.operation_datetime_utc > NOW() - INTERVAL '12 hour' AND
lr.log_type = 'DEP'
GROUP BY lr.cfr, lr.ircs, lr.external_identification, lr.operation_number
),
Expand All @@ -94,7 +94,7 @@ interface DBReportingRepository : CrudRepository<ReportingEntity, Int> {
SELECT DISTINCT referenced_report_id
FROM logbook_reports lr
WHERE
lr.operation_datetime_utc > NOW() - INTERVAL '1 hour' AND
lr.operation_datetime_utc > NOW() - INTERVAL '12 hour' AND
lr.operation_type = 'RET' AND
lr.value->>'returnStatus' = '000'
)
Expand Down

0 comments on commit cd6d936

Please sign in to comment.