Skip to content

Commit

Permalink
Increase time window when fetching reportings to archive
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Jan 27, 2025
1 parent 96ea498 commit 5752652
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 5752652

Please sign in to comment.