From 8d24185f59e4c5162cc92d9bbcdf29ab3e3eb094 Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Mon, 20 Jan 2025 10:57:41 +0100 Subject: [PATCH] Add missing far 48h alert --- .../domain/use_cases/reporting/ArchiveOutdatedReportings.kt | 1 + frontend/src/features/Alert/constants.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/reporting/ArchiveOutdatedReportings.kt b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/reporting/ArchiveOutdatedReportings.kt index 9a53724cf6..17985dc14c 100644 --- a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/reporting/ArchiveOutdatedReportings.kt +++ b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/use_cases/reporting/ArchiveOutdatedReportings.kt @@ -24,6 +24,7 @@ class ArchiveOutdatedReportings( reportingCandidatesToArchive .filter { it.second.type == AlertTypeMapping.MISSING_FAR_ALERT || + it.second.type == AlertTypeMapping.MISSING_FAR_48_HOURS_ALERT || it.second.type == AlertTypeMapping.THREE_MILES_TRAWLING_ALERT || it.second.type == AlertTypeMapping.MISSING_DEP_ALERT || it.second.type == AlertTypeMapping.SUSPICION_OF_UNDER_DECLARATION_ALERT diff --git a/frontend/src/features/Alert/constants.ts b/frontend/src/features/Alert/constants.ts index 3a770f6a0a..0d288ff6e7 100644 --- a/frontend/src/features/Alert/constants.ts +++ b/frontend/src/features/Alert/constants.ts @@ -34,7 +34,7 @@ export const COMMON_ALERT_TYPE_OPTION: Record< }, MISSING_FAR_48_HOURS_ALERT: { code: PendingAlertValueType.MISSING_FAR_48_HOURS_ALERT, - isArchivedAfterDEPMessage: false, + isArchivedAfterDEPMessage: true, isOperationalAlert: true, name: 'Non-emission de message "FAR" en 48h' },