Skip to content

Commit 7e52afd

Browse files
committed
Add acknowledgment of single pno
1 parent d544248 commit 7e52afd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/main/kotlin/fr/gouv/cnsp/monitorfish/infrastructure/database/repositories/JpaLogbookReportRepository.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ class JpaLogbookReportRepository(
9999
.findAcknowledgedNonDeletedPnoDatAndCorsByReportId(reportId, operationDate.toString()).firstOrNull()
100100

101101
return logbookReport?.let {
102-
PriorNotification.fromLogbookMessage(it.toLogbookMessage(objectMapper))
102+
val pno = PriorNotification.fromLogbookMessage(it.toLogbookMessage(objectMapper))
103+
pno.markAsAcknowledged()
104+
105+
return@let pno
103106
}
104107
}
105108

0 commit comments

Comments
 (0)