From a478531adc0844dd94219730c91d9a2e255f72ae Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Wed, 14 Aug 2024 15:51:02 +0200 Subject: [PATCH] Fix logbook pno to verify after invalidation --- .../database/repositories/JpaLogbookReportRepository.kt | 1 + 1 file changed, 1 insertion(+) 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 6cd1e37e8d..3469e22f79 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 @@ -440,6 +440,7 @@ class JpaLogbookReportRepository( } @Transactional + @CacheEvict(value = ["pno_to_verify"], allEntries = true) override fun invalidate(reportId: String, operationDate: ZonedDateTime) { val logbookReportEntities = dbLogbookReportRepository.findEnrichedPnoReferenceAndRelatedOperationsByReportId(