fix: Backend formatting

This commit is contained in:
2025-11-14 19:27:37 +01:00
parent 08e8009bfd
commit 40ec2736c9
6 changed files with 10 additions and 15 deletions

View File

@@ -47,4 +47,3 @@ class ApplicationFormVersion(
@Column(nullable = false) @Column(nullable = false)
var createdAt: LocalDateTime? = null, var createdAt: LocalDateTime? = null,
) )

View File

@@ -49,4 +49,3 @@ class ApplicationFormVersionController(
return ResponseEntity.ok(applicationFormMapper.toApplicationFormDto(restoredForm)) return ResponseEntity.ok(applicationFormMapper.toApplicationFormDto(restoredForm))
} }
} }

View File

@@ -48,4 +48,3 @@ class ApplicationFormVersionMapper(
?: throw IllegalStateException("ApplicationFormVersion createdAt must not be null!"), ?: throw IllegalStateException("ApplicationFormVersion createdAt must not be null!"),
) )
} }

View File

@@ -16,4 +16,3 @@ interface ApplicationFormVersionRepository : JpaRepository<ApplicationFormVersio
fun countByApplicationFormId(applicationFormId: UUID): Int fun countByApplicationFormId(applicationFormId: UUID): Int
} }

View File

@@ -9,8 +9,8 @@ import com.betriebsratkanzlei.legalconsenthub.form_element.FormElementSection
import com.betriebsratkanzlei.legalconsenthub.form_element.FormOption import com.betriebsratkanzlei.legalconsenthub.form_element.FormOption
import com.betriebsratkanzlei.legalconsenthub.user.User import com.betriebsratkanzlei.legalconsenthub.user.User
import com.betriebsratkanzlei.legalconsenthub_api.model.ApplicationFormSnapshotDto import com.betriebsratkanzlei.legalconsenthub_api.model.ApplicationFormSnapshotDto
import com.betriebsratkanzlei.legalconsenthub_api.model.FormElementSnapshotDto
import com.betriebsratkanzlei.legalconsenthub_api.model.FormElementSectionSnapshotDto import com.betriebsratkanzlei.legalconsenthub_api.model.FormElementSectionSnapshotDto
import com.betriebsratkanzlei.legalconsenthub_api.model.FormElementSnapshotDto
import com.betriebsratkanzlei.legalconsenthub_api.model.FormOptionDto import com.betriebsratkanzlei.legalconsenthub_api.model.FormOptionDto
import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.stereotype.Service import org.springframework.stereotype.Service
@@ -151,14 +151,15 @@ class ApplicationFormVersionService(
type = elementSnapshot.type, type = elementSnapshot.type,
formElementSection = section, formElementSection = section,
options = options =
elementSnapshot.options.map { optionDto -> elementSnapshot.options
FormOption( .map { optionDto ->
value = optionDto.value, FormOption(
label = optionDto.label, value = optionDto.value,
processingPurpose = optionDto.processingPurpose, label = optionDto.label,
employeeDataCategory = optionDto.employeeDataCategory, processingPurpose = optionDto.processingPurpose,
) employeeDataCategory = optionDto.employeeDataCategory,
}.toMutableList(), )
}.toMutableList(),
) )
section.formElements.add(element) section.formElements.add(element)
} }
@@ -166,4 +167,3 @@ class ApplicationFormVersionService(
return section return section
} }
} }

View File

@@ -6,4 +6,3 @@ class ApplicationFormVersionNotFoundException(
applicationFormId: UUID, applicationFormId: UUID,
versionNumber: Int, versionNumber: Int,
) : RuntimeException("Application form version $versionNumber for application form $applicationFormId not found") ) : RuntimeException("Application form version $versionNumber for application form $applicationFormId not found")