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)
var createdAt: LocalDateTime? = null,
)

View File

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

View File

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

View File

@@ -16,4 +16,3 @@ interface ApplicationFormVersionRepository : JpaRepository<ApplicationFormVersio
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.user.User
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.FormElementSnapshotDto
import com.betriebsratkanzlei.legalconsenthub_api.model.FormOptionDto
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.stereotype.Service
@@ -151,14 +151,15 @@ class ApplicationFormVersionService(
type = elementSnapshot.type,
formElementSection = section,
options =
elementSnapshot.options.map { optionDto ->
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
}
}

View File

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