Skip to content

Commit

Permalink
Add acknowledgment of single pno
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Aug 16, 2024
1 parent d544248 commit 7e52afd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ class JpaLogbookReportRepository(
.findAcknowledgedNonDeletedPnoDatAndCorsByReportId(reportId, operationDate.toString()).firstOrNull()

return logbookReport?.let {
PriorNotification.fromLogbookMessage(it.toLogbookMessage(objectMapper))
val pno = PriorNotification.fromLogbookMessage(it.toLogbookMessage(objectMapper))
pno.markAsAcknowledged()

return@let pno
}
}

Expand Down

0 comments on commit 7e52afd

Please sign in to comment.