Skip to content

Commit

Permalink
Préavis – Restaure la réinitialisation de l'état d'envoi durant la sa…
Browse files Browse the repository at this point in the history
…uvegarde auto des préavis JPE (#3534)

## Linked issues

None

----

- [ ] Tests E2E (Cypress)
  • Loading branch information
ivangabriele committed Aug 13, 2024
2 parents 5355867 + af3bf90 commit c67b398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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?
/**
Expand Down Expand Up @@ -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.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c67b398

Please sign in to comment.