diff --git a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/entities/prior_notification/PriorNotification.kt b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/entities/prior_notification/PriorNotification.kt index 01f9823e47..5a53876cf9 100644 --- a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/entities/prior_notification/PriorNotification.kt +++ b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/domain/entities/prior_notification/PriorNotification.kt @@ -33,7 +33,6 @@ data class PriorNotification( ) { /** Each prior notification and each of its updates have a unique fingerprint. */ val fingerprint: String = listOf(reportId, updatedAt, state).joinToString(separator = ".") - private val logger = LoggerFactory.getLogger(PriorNotification::class.java) val state: PriorNotificationState? /** @@ -138,6 +137,8 @@ data class PriorNotification( } companion object { + private val logger = LoggerFactory.getLogger(PriorNotification::class.java) + /** * Next initial state of the prior notification once it will be created or updated. * diff --git a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/infrastructure/database/repositories/JpaLogbookReportRepository.kt b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/infrastructure/database/repositories/JpaLogbookReportRepository.kt index 0566a0d38e..b7b629bb33 100644 --- a/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/infrastructure/database/repositories/JpaLogbookReportRepository.kt +++ b/backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/infrastructure/database/repositories/JpaLogbookReportRepository.kt @@ -425,6 +425,8 @@ class JpaLogbookReportRepository( * - the PDF will be re-generated (done in the use case by deleting the old one) * - the PNO will require another verification before sending */ + pnoMessage.isBeingSent = false + pnoMessage.isSent = false pnoMessage.isVerified = false val nextMessage = objectMapper.writeValueAsString(pnoMessage)