diff --git a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersion.kt b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersion.kt index 9a69c77..c9ee286 100644 --- a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersion.kt +++ b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersion.kt @@ -47,4 +47,3 @@ class ApplicationFormVersion( @Column(nullable = false) var createdAt: LocalDateTime? = null, ) - diff --git a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionController.kt b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionController.kt index e683ee6..4522622 100644 --- a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionController.kt +++ b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionController.kt @@ -49,4 +49,3 @@ class ApplicationFormVersionController( return ResponseEntity.ok(applicationFormMapper.toApplicationFormDto(restoredForm)) } } - diff --git a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionMapper.kt b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionMapper.kt index 81d129a..e9d244f 100644 --- a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionMapper.kt +++ b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionMapper.kt @@ -48,4 +48,3 @@ class ApplicationFormVersionMapper( ?: throw IllegalStateException("ApplicationFormVersion createdAt must not be null!"), ) } - diff --git a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionRepository.kt b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionRepository.kt index 651f9c4..6a40449 100644 --- a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionRepository.kt +++ b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/application_form_version/ApplicationFormVersionRepository.kt @@ -16,4 +16,3 @@ interface ApplicationFormVersionRepository : JpaRepository - FormOption( - value = optionDto.value, - label = optionDto.label, - processingPurpose = optionDto.processingPurpose, - employeeDataCategory = optionDto.employeeDataCategory, - ) - }.toMutableList(), + elementSnapshot.options + .map { optionDto -> + FormOption( + value = optionDto.value, + label = optionDto.label, + processingPurpose = optionDto.processingPurpose, + employeeDataCategory = optionDto.employeeDataCategory, + ) + }.toMutableList(), ) section.formElements.add(element) } @@ -166,4 +167,3 @@ class ApplicationFormVersionService( return section } } - diff --git a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/error/ApplicationFormVersionNotFoundException.kt b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/error/ApplicationFormVersionNotFoundException.kt index 520828d..9e2ff02 100644 --- a/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/error/ApplicationFormVersionNotFoundException.kt +++ b/legalconsenthub-backend/src/main/kotlin/com/betriebsratkanzlei/legalconsenthub/error/ApplicationFormVersionNotFoundException.kt @@ -6,4 +6,3 @@ class ApplicationFormVersionNotFoundException( applicationFormId: UUID, versionNumber: Int, ) : RuntimeException("Application form version $versionNumber for application form $applicationFormId not found") -